cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Batch file to execute a Java program when method server starts

smorla
10-Marble

Batch file to execute a Java program when method server starts

Hi

I have a utility program on Windchill - deployed and working.

I want this program to start running as soon as the method server starts and stops as soon as the method server stops.

Adding to the contents of this example, I added the following commands to run the java program right after windchill starts:

     cd C:\ptc\Windchill_11.0\Windchill

     java ext.mypackage.utilityClass


The error: "unable to find or load main class" appears.

However, running the command java ext.mypackage.utilityClass on Windchill shell directly works as it should.

So, why does the batch file fail to do the same?

0 REPLIES 0
Announcements

Top Tags