<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Standalone job: Need help with java calling sequence, jar files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315405#M86062</link>
    <description>Hi Everyone, 
&lt;BR /&gt;I am using Talend (for Data Integration, 6.0.0 on OS X, java version "1.8.0_45") to 
&lt;BR /&gt;export and construct jobs that will need to run on a cloud service like iron.io. &amp;nbsp;I 
&lt;BR /&gt;can export the job and get it to run successfully on my local machine using the .sh 
&lt;BR /&gt;script created by Talend. &amp;nbsp;I am running into an issue when trying to get the code to 
&lt;BR /&gt;run on iron.io, and I think it might come down to differences in how the java code is 
&lt;BR /&gt;being called. &amp;nbsp;My question pertains to the fundamentals of java rather than the specifics 
&lt;BR /&gt;of Talend or iron.io. Let me explain. 
&lt;BR /&gt;1) I currently build a job called ironiotest_0_1. Talend ouputs a jar file called 
&lt;BR /&gt;ironiotest_0_1.jar plus jar files for other supporting libraries needed for the 
&lt;BR /&gt;execution. &amp;nbsp;ironiotest_0_1.jar contains the contents: 
&lt;BR /&gt;META-INF/ 
&lt;BR /&gt;META-INF/MANIFEST.MF 
&lt;BR /&gt;test/ 
&lt;BR /&gt;test/ironiotest_0_1/ 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$1.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$ContextProperties.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$row2Struct.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$TalendException.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest.class 
&lt;BR /&gt;2) The script from Talend reads like: 
&lt;BR /&gt;java -cp test.ironiotest_0_1.ironiotest 
&lt;BR /&gt;This command works fine on my local machine. I put all the supporting jar files into the 
&lt;BR /&gt;working directory in order to simulate how things will be arranged on iron.io. 
&lt;BR /&gt;3) Iron.io builds execution scripts using the alternate 
&lt;BR /&gt;java -cp -jar ironiotest_0_1.jar 
&lt;BR /&gt;syntax. &amp;nbsp;This does not work on the server or my local machine. &amp;nbsp;My local machine gives 
&lt;BR /&gt;"Error: Could not find or load main class test.ironiotest_0_1.ironiotest" 
&lt;BR /&gt;Is there something I can do to the jar file (e.g., update or repack it) to 
&lt;BR /&gt;make iron.io's preferred syntax work? &amp;nbsp;Note, I have tried adding a "manifest.txt" containing 
&lt;BR /&gt;"Main-Class: test.ironiotest_0_1.ironiotest" to the top level of the ironiotest_0_1.jar file. 
&lt;BR /&gt;This does not fix the issue (unless the manifest.txt needs to be put elsewhere in the jar?). 
&lt;BR /&gt;Thanks!</description>
    <pubDate>Mon, 25 May 2015 13:20:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-25T13:20:58Z</dc:date>
    <item>
      <title>Standalone job: Need help with java calling sequence, jar files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315405#M86062</link>
      <description>Hi Everyone, 
&lt;BR /&gt;I am using Talend (for Data Integration, 6.0.0 on OS X, java version "1.8.0_45") to 
&lt;BR /&gt;export and construct jobs that will need to run on a cloud service like iron.io. &amp;nbsp;I 
&lt;BR /&gt;can export the job and get it to run successfully on my local machine using the .sh 
&lt;BR /&gt;script created by Talend. &amp;nbsp;I am running into an issue when trying to get the code to 
&lt;BR /&gt;run on iron.io, and I think it might come down to differences in how the java code is 
&lt;BR /&gt;being called. &amp;nbsp;My question pertains to the fundamentals of java rather than the specifics 
&lt;BR /&gt;of Talend or iron.io. Let me explain. 
&lt;BR /&gt;1) I currently build a job called ironiotest_0_1. Talend ouputs a jar file called 
&lt;BR /&gt;ironiotest_0_1.jar plus jar files for other supporting libraries needed for the 
&lt;BR /&gt;execution. &amp;nbsp;ironiotest_0_1.jar contains the contents: 
&lt;BR /&gt;META-INF/ 
&lt;BR /&gt;META-INF/MANIFEST.MF 
&lt;BR /&gt;test/ 
&lt;BR /&gt;test/ironiotest_0_1/ 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$1.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$ContextProperties.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$row2Struct.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest$TalendException.class 
&lt;BR /&gt;test/ironiotest_0_1/ironiotest.class 
&lt;BR /&gt;2) The script from Talend reads like: 
&lt;BR /&gt;java -cp test.ironiotest_0_1.ironiotest 
&lt;BR /&gt;This command works fine on my local machine. I put all the supporting jar files into the 
&lt;BR /&gt;working directory in order to simulate how things will be arranged on iron.io. 
&lt;BR /&gt;3) Iron.io builds execution scripts using the alternate 
&lt;BR /&gt;java -cp -jar ironiotest_0_1.jar 
&lt;BR /&gt;syntax. &amp;nbsp;This does not work on the server or my local machine. &amp;nbsp;My local machine gives 
&lt;BR /&gt;"Error: Could not find or load main class test.ironiotest_0_1.ironiotest" 
&lt;BR /&gt;Is there something I can do to the jar file (e.g., update or repack it) to 
&lt;BR /&gt;make iron.io's preferred syntax work? &amp;nbsp;Note, I have tried adding a "manifest.txt" containing 
&lt;BR /&gt;"Main-Class: test.ironiotest_0_1.ironiotest" to the top level of the ironiotest_0_1.jar file. 
&lt;BR /&gt;This does not fix the issue (unless the manifest.txt needs to be put elsewhere in the jar?). 
&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 25 May 2015 13:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315405#M86062</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-25T13:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone job: Need help with java calling sequence, jar files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315406#M86063</link>
      <description>Hi,&lt;BR /&gt;The job run successfully in your studio and Local machine? Is there any Java environments on cloud service? &lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 26 May 2015 09:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315406#M86063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-26T09:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Standalone job: Need help with java calling sequence, jar files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315407#M86064</link>
      <description>Hi Sabrina, thanks for replying. &amp;nbsp;Yes, the job runs fine on the local machine in the studio and in the terminal when I use the
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;java -cp test.ironiotest_0_1.ironiotest&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;syntax. &amp;nbsp;It fails when I use the alternate syntax
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;java -cp -jar ironiotest_0_1.jar&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;and I do not understand why.
&lt;BR /&gt;The Java environment on iron.io is version 1.7, which is slightly older than what I have locally.</description>
      <pubDate>Fri, 29 May 2015 21:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Standalone-job-Need-help-with-java-calling-sequence-jar-files/m-p/2315407#M86064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-29T21:52:56Z</dc:date>
    </item>
  </channel>
</rss>

