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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Batch file to execute a Java program when method server starts

smorla
11-Garnet

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