Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did as you said and run.bat is running .
Thank you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic