Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

-classpath is an unrecognized option

 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind. Sorry to bother you. I obsfucated the environment setting a la set CLASSPATH=xyz with the -classpath option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic