Hi,
I have a Java application that must be run for every new message
on a queue. I have setup triggering and started the trigger monitor.
The trigger fires but the Java program does not run correctly. I don't
call the Java program directly but instead call a batch file that changes
to the right directory and then runs the program.
I seems that the program doesn't work because the current directory is
not what it whould? How can I change the current/working directory of an
application that must be started by a trigger.
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
Instead of changing the direcories in the batch file have you tried giving the complete path of the program? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
The other way is to set the CLASSPATH.
In the CLASSPATH specify the directory where the java class that you intend to call is located (and any other necessary directories).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum