Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"tools.jar unexpected" error when executing run.bat in jboss

 
pranitha bommu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just starting EJB3 & using Enterprise JavaBeans 3.0 O'Reily book for JBoss. I have installed jboss4.0.5.GA in jboss4 folder.
Did I set the environment variables correctly?

This is the error:

C:\jboss4\bin>run.bat
\Java\jdk1.6.0_07\lib\tools.jar was unexpected at this time
.

Environment variables are set as follows

C:\>echo %JAVA_HOME%
C:\Program Files (x86)\Java\jdk1.6.0_07

C:\>echo %JBOSS_HOME%
C:\jboss4\bin

C:\>echo %path%
C:\jboss4\bin;C:\Program Files (x86)\PC Connectivity Solution\;C:\Windows\system32;C:\Program Files (x86)\Java\jdk1.6.0_07\bin;C:\Program Files (x86)\Java\jdk1.6.0_07\lib;

C:\>echo %classpath%
C:\Program Files (x86)\Java\jdk1.6.0_07\bin;C:\Program Files (x86)\Java\jdk1.6.0_07\lib;C:\Program Files (x86)\Java\jdk1.6.0_07\lib\tools.jar;
C:\Program Files (x86)\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\jboss4\bin\run.jar
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect the "Program Files" is the problem - spaces in path names can lead to weird issues like this. Try moving the JDK out of Program Files (I have mine at c:\apps\java\jdk1.6.0_13); you do not have to reinstall, moving or even copying is fine. And then change JAVA_HOME to reflect the new location.
 
pranitha bommu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did as you said and run.bat is running .
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic