<?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 Help compiling java files with bash script in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963140#M8425</link>
    <description>&lt;P&gt;Version: Windchill 12.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Need help completing my bash script to compile java files. Currently having issues with windchill class not found exceptions, I believe I need to include the .JAR files into the classpath, but am not sure how to do so.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is what I have written so far, the javac $file command is leading to class not found exceptions since I haven't included the JAR files:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_1-1721830498807.png" style="width: 803px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108207iAF72BB110A63C551/image-dimensions/803x570?v=v2" width="803" height="570" role="button" title="loganc_1-1721830498807.png" alt="loganc_1-1721830498807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this article that briefly talked about how to do&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS324171" target="_blank"&gt;https://www.ptc.com/en/support/article/CS324171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am using more than one jar file, probably about 50 in total. Need help figuring out what to do with them.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 14:21:05 GMT</pubDate>
    <dc:creator>loganc</dc:creator>
    <dc:date>2024-07-24T14:21:05Z</dc:date>
    <item>
      <title>Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963140#M8425</link>
      <description>&lt;P&gt;Version: Windchill 12.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: Need help completing my bash script to compile java files. Currently having issues with windchill class not found exceptions, I believe I need to include the .JAR files into the classpath, but am not sure how to do so.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is what I have written so far, the javac $file command is leading to class not found exceptions since I haven't included the JAR files:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_1-1721830498807.png" style="width: 803px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108207iAF72BB110A63C551/image-dimensions/803x570?v=v2" width="803" height="570" role="button" title="loganc_1-1721830498807.png" alt="loganc_1-1721830498807.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this article that briefly talked about how to do&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/CS324171" target="_blank"&gt;https://www.ptc.com/en/support/article/CS324171&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am using more than one jar file, probably about 50 in total. Need help figuring out what to do with them.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 14:21:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963140#M8425</guid>
      <dc:creator>loganc</dc:creator>
      <dc:date>2024-07-24T14:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963180#M8427</link>
      <description>&lt;P&gt;You might need to setup the Windchill shell environment inside the bash script. I add these 2 following lines to shell scripts that need it:&lt;/P&gt;
&lt;DIV style="background-color: #ffffff; padding: 0px 0px 0px 2px;"&gt;
&lt;DIV style="color: #000000; background-color: #ffffff; font-family: 'Consolas'; font-size: 12pt; white-space: pre;"&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;echo&lt;/SPAN&gt; &lt;SPAN&gt;" Setting up the Windchill shell environment"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;SPAN&gt;eval&lt;/SPAN&gt; &lt;SPAN&gt;`/opt/ptc/Windchill/Windchill/bin/windchill --java=/opt/ptc/Windchill/Java/bin/java eval`&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Jul 2024 16:55:23 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963180#M8427</guid>
      <dc:creator>RandyJones</dc:creator>
      <dc:date>2024-07-24T16:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963205#M8428</link>
      <description>&lt;P&gt;I added in the line to setup Windchill shell environment, but am still getting class not found exceptions when compiling. I tried adding my jar files to the classpath when compiling, which is when I noticed that each file was separated by a string, when they should have been separated by a colon.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After putting all the the jar file paths into a string variable (separating them by a colon) I'm still getting Windchill class not found errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what my jar_files_str variable looks like: (full paths of jar files separated by ':')&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_0-1721851264552.png" style="width: 1069px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108220iF96CB09C94DD843C/image-dimensions/1069x794?v=v2" width="1069" height="794" role="button" title="loganc_0-1721851264552.png" alt="loganc_0-1721851264552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Current bash file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_1-1721851347984.png" style="width: 993px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108221i996ACE1D7F408C11/image-dimensions/993x966?v=v2" width="993" height="966" role="button" title="loganc_1-1721851347984.png" alt="loganc_1-1721851347984.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;errors still getting compiling:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_2-1721851848756.png" style="width: 1160px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108223i7DC17B0D2DFD0D68/image-dimensions/1160x374?v=v2" width="1160" height="374" role="button" title="loganc_2-1721851848756.png" alt="loganc_2-1721851848756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 20:11:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963205#M8428</guid>
      <dc:creator>loganc</dc:creator>
      <dc:date>2024-07-24T20:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963292#M8430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/784528"&gt;@loganc&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should add all class to the variable not just jar files.&lt;/P&gt;
&lt;P&gt;There is a folder codebase in the Windchill folder, where all the internal classes are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you should add the WTHOME\codebase folder to the java class variable&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 07:15:07 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/963292#M8430</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-07-25T07:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/965516#M8492</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/784528"&gt;@loganc&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up with you on your post to see if your question has been answered.&amp;nbsp;&lt;BR /&gt;If so, please mark the appropriate reply as the Accepted Solution.&amp;nbsp;&lt;BR /&gt;Of course, if you have more to share on your issue, please let the Community know so that we can continue to help you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2024 19:25:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/965516#M8492</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2024-08-07T19:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/965745#M8493</link>
      <description>&lt;P&gt;I'm close to solving this, but not quite. I was able to add the OOTB classes to my classpath with this: CLASSPATH=/pdmlink/ptc/installers/wc12_codebase/wc12_codebase:/pdmlink/ptc/build/jars/*, the issue is I also need custom classes to be referenced in the classpath as well. I tried setting the classpath /pdmlink/ptc/build/jars:/pdmlink/ptc/installers/wc12_codebase/wc12_codebase:/pdmlink/ptc/installers/custom/customization, with the custom class files being in customization. This did not work. I also tried making a copy of wc12_codebase, and copying the classfiles to there, so classpath=/pdmlink/ptc/installers/wc12_codebase_copy/wc12_codebase:/pdmlink/ptc/build/jars/* This too did not work. RenumberResult.class exists in the custom/customization directory, So I am unsure why the compiler isn't able to recognize this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loganc_0-1723132007199.png" style="width: 730px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/108921iF17CD1CA92B65364/image-dimensions/730x135?v=v2" width="730" height="135" role="button" title="loganc_0-1723132007199.png" alt="loganc_0-1723132007199.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 15:47:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/965745#M8493</guid>
      <dc:creator>loganc</dc:creator>
      <dc:date>2024-08-08T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help compiling java files with bash script</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/968118#M8588</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/315551"&gt;@anursingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is easier to use IDE to compile the customization where you can see what is really missing..&lt;/P&gt;
&lt;P&gt;In your case you have still problem with the path and custom classes that are missing in the definition somehow,.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PetrH&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 07:32:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Help-compiling-java-files-with-bash-script/m-p/968118#M8588</guid>
      <dc:creator>HelesicPetr</dc:creator>
      <dc:date>2024-08-26T07:32:37Z</dc:date>
    </item>
  </channel>
</rss>

