aspose file tools*
The moose likes Beginning Java and the fly likes Problem with running java via .bat file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem with running java via .bat file" Watch "Problem with running java via .bat file" New topic
Author

Problem with running java via .bat file

Yo Nathan
Greenhorn

Joined: Aug 02, 2005
Posts: 2
Hi,

I have a problem with running a java class via *.bat file.
The problem is the .bat file doesn't work consistently.
What I'm trying to say is that I've tried to execute the .bat file in 3 different PCs; it was run succesfully on the first two PCs and failed on the last one. The error message is about NoSuchMethodException.

Does anyone know how come this happened? Really Need your help...


Thanks
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

Different JVM versions, it sounds like...
Sherry Jacob
Ranch Hand

Joined: Jun 29, 2005
Posts: 128
Originally posted by Yo Nathan:
Hi,

I have a problem with running a java class via *.bat file.
The problem is the .bat file doesn't work consistently.
What I'm trying to say is that I've tried to execute the .bat file in 3 different PCs; it was run succesfully on the first two PCs and failed on the last one. The error message is about NoSuchMethodException.

Does anyone know how come this happened? Really Need your help...


Thanks



Ya...Steve's right !! Different JVM versions on the machines causes this problem.


<strong><br />Cheers !!<br /> <br />Sherry<br /></strong><br />[SCJP 1.4]
Yo Nathan
Greenhorn

Joined: Aug 02, 2005
Posts: 2
Originally posted by Sherry Jacob:



Ya...Steve's right !! Different JVM versions on the machines causes this problem.


Hi Steve, Sherry.....Thank you very much for your answer...
It really solves the problem=)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with running java via .bat file