Cancel
Showing results for 
Search instead for 
Did you mean: 

Running Java HelloTeamcenter SOA from command prompt

Experimenter
Experimenter

Hi,

I would like to know the configuration or settings we need to follow while exporting a SOA JAR file from Eclipse or BMIDE. When I execute a code from eclpise it works fine. But whenever I do the same from the commmand prompt I am getting multiple errors. Please let em know if anyone has the process to export it and run it on a command prompt.

 

Regards,

Lokesh p

2 REPLIES

Re: Running Java HelloTeamcenter SOA from command prompt

Experimenter
Experimenter

Add SOA_CLIENT\java\libs all jar files in class path and provide it as input to the command line

SET APP_CP=<your jar file>;<full path of indiviual jar files in soa_client\java\libs>

and then try.

Re: Running Java HelloTeamcenter SOA from command prompt

Experimenter
Experimenter

I tried to add class path, but still getting the below error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/teamcenter/soa/client/CredentialManager
at com.teamcenter.hello.Hello.main(Hello.java:54)
Caused by: java.lang.ClassNotFoundException: com.teamcenter.soa.client.CredentialManager
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more

 

Exported the HelloTeamcenter as run.jar and using this line in cmd: where all the jar files are in run_lib folder.

java -cp run.jar;C:\Teamcenter\eclipse-java\run_lib\* -jar run.jar