Click to See Complete Forum and Search --> : Problem Starting JBoss


dayanandasekar
10-29-2005, 05:12 AM
Hi,

I trying to learng EJB and I use JBoss Application Server as my EJB container.

I installed it online using JNLP from www.jboss.org the version is 4.0.3.

But the problem is that I can't start the server whenever I click "run.bat".

The resulting console window shows the following error.

------------------------------------------------------------------------------------------------------

Could not locate C:\Program Files\Java\jdk1.5.0_05;\lib\tools.jar. Unexpected re
sults may occur.
Make sure that JAVA_HOME points to a JDK and not a JRE.
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\Program Files\jboss-4.0.3\bin\\..
.
JAVA: C:\Program Files\Java\jdk1.5.0_05;\bin\java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
.
CLASSPATH: C:\Program Files\Java\jdk1.5.0_05;\lib\tools.jar;C:\Program Files\j
boss-4.0.3\bin\\run.jar
.
===============================================================================
.
The system cannot find the path specified.
Press any key to continue . . .


------------------------------------------------------------------------------------------------------

I have set the environment variables like JAVA_HOME properly but I am still having this problem.

Please help.

Bye

Khalid Ali
10-29-2005, 07:28 AM
your problem may be on the lines where there is a space between the folder names such as
C:\Program Files\Java\jdk1.5.0_05;\bin\java

Read the sticky thread on the top of this forum titled Troubleshooting Guide For Some Basic Java Problems. (http://www.webdeveloper.com/forum/showthread.php?t=44232), you should get your answer.

dayanandasekar
10-29-2005, 08:15 AM
Hey,

Thanks, Khalid. There was a small problem in the JAVA_HOME environment variable. I added a semi - colon in the end.

When I removed it the server runs fine.

Thanks a lot . . .