File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes -classpath is an unrecognized option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "-classpath is an unrecognized option" Watch "-classpath is an unrecognized option" New topic
Author

-classpath is an unrecognized option

John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 183
In the C:\mqWinInstall directory, I have the .class that I want to run and a bat file which reads as follows:



When I run the batch file, I receive an error message:

C:\mqWinInstall>C:\mqWinInstall\jre\bin\java.exe -classpath="C:\mqWinInstall"
mqWinInstall
Unrecognized option: -classpath=C:\mqWinInstall
Could not create the Java virtual machine.

why is -classpath an unrecognized option?
John Davis
Ranch Hand

Joined: Nov 02, 2000
Posts: 183
Never mind. Sorry to bother you. I obsfucated the environment setting a la set CLASSPATH=xyz with the -classpath option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: -classpath is an unrecognized option
 
Similar Threads
Classpath Question
JRE problem in JWS
NoClassDefFoundError when running a java app from outside it's folder
MultipleJRE's
ClassCastException for SOAP message