There are two ways to compile java scripts using the Intralink environment.
Thank's a lot: Patrick Asselman, Raymond Stewart and Marc Mettes.
1 Use the Intralink java environment:
C:\ptc\proiclient3.3\i486_nt\jre\bin\java -classpath
C:\ptc\proiclient3.3\i486_nt\lib\tools.jar;C:\ptc\proiclient3.3\java\lib\Int
ralink.jar com/sun/tools/javac/Main -d
"%PDM_LDB_PATH%\.proi\.data\user.data\lib"
"%PDM_LDB_PATH%\.proi\.data\user.data\source\MyApp.java"
2 Use the Intralink -p startup option:
proiclient3.3 -- -p MyApp.java -nographics
The -p option is normally used to execute (play) a compiled script, but then
you should not add .java after the script name.
When .java is added it only compiles the script and exits quickly.
So to compile and then execute you can use these two commands:
proiclient3.3 -- -p MyApp.java -nographics
proiclient3.3 -- -p MyApp -nographics
(let's hope PTC doesn't consider this a bug and leaves it in there ...)
Thanks again folks, this helped me a lot.
Olaf.
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.