wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark ""tools.jar unexpected" error when executing run.bat in jboss" Watch ""tools.jar unexpected" error when executing run.bat in jboss" New topic
Author

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

pranitha bommu
Greenhorn

Joined: Sep 08, 2008
Posts: 3
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

Joined: May 14, 2008
Posts: 5823
    
    7

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.


JBoss In Action
pranitha bommu
Greenhorn

Joined: Sep 08, 2008
Posts: 3
I did as you said and run.bat is running .
Thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "tools.jar unexpected" error when executing run.bat in jboss