The answer is to install your JDK and JBoss in a directory with no spaces in the name.
Thanks for the answer.
I've already supposed that that was the solution. But what I want is to keep my JDK and JBoss in my Program Files Directory... in order to keep my disc perfectly clean ;-))).
It's been years that we can put spaces in directory names (both Windows and UNIX !), and there are still some programs that don't take this in mind !!! Can't understand this ;-)))
So, if someone have an idea... he's welcome ;-)))
You could try to use the old 8dot3 format of filenames - modify JAVA_HOME to something like:
Use dir /x to check what 8dot3 name to use.
I havn't tried this myself. It is a long time since I learned that spaces in file and directory-names are trouble.
My environment variables are already setted with 8.3 format.
JAVA_HOME is C:\Progra~1\Java
JBOSS_HOME is C:\Progra~1\JBoss
But it still doesn't work with this, which surprise me a lot ! Perhaps Tomcat uses something in the windows registry to find JAVAC, but I don't think so...
And what surprised me more, is that it was working with JBoss 3.2.0RC2 !!!
Any idea is welcome...
Is anybody there ? ;-)))
Yes people are here.
You have already been given the answer.
I was thinking that there was another solution than re-installing all my Java and JBoss softwares, and that somebody knows what's going on with those environment variables...
After searching a while, I think it's more a JBoss problem than a Java problem, because all works perfectly if :
- I put Java in C:\Program Files\Java
- I put JBoss in C:\JBoss
- JAVA_HOME is C:\Program Files\Java (Yes, I know... but it works!!! ;-)
So... if someone could tell me what environment is use to compil the servlets with Tomcat... I'm very interested...
Thanks a lot...
In fact, it seems that the JAVAC_JAR variable in run.bat has no effect too...
rem Include the JDK javac compiler for JSP pages. The default is for a Sun JDK
rem compatible distribution to which JAVA_HOME points
The Sun J2EE 1.4 application server is the same, the installer will not allow it to be installed into a path with a space in the name.