Skip to main content
11-Garnet
February 24, 2017
Question

Batch file to execute a Java program when method server starts

  • February 24, 2017
  • 0 replies
  • 669 views

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?