[jboss-user] [Beginners Corner] - Re: How do i deploy servlet using JBoss4.2.0.GA, pls help ??

PeterJ do-not-reply at jboss.com
Wed May 30 19:05:49 EDT 2007


1) I recommend against placing any Java applications within Program Files. Various Java libraries have problems with spaces in the directory name, and unless you enjoy chasing down weird problems, you should put JBoss elsewhere. On my PC, JBoss is at f:\jboss\jboss-4.0.5.GA.

2) You do not need a classpath, the run.bat will set it up for you. I recommend that you never set a global CLASSPATH, it will only cause problems.

3) Your JAVA_HOME is incorrect. First, it references a JRE, your really should have a JDK. And your JRE is really old. You should download and use the latest 1.4 or 1.5 JDK from Sun and install it (do not use JDK 6, JBoss is not yet qualified to run with that and it can cause problems). Do not install the JDK in Program Files. Mine is at d:\apps\jdk1.5.0_11. (Yeah, I have a lot of disk drives, but on my laptop at home I use the same naming convention but everything is on the c: drive). Second, set JAVA_HOME to the installation directory, not to the jvm.dll. For example, on my PC I have:

JAVA_HOME=d:\apps\jdk1.5.0_11

4) It is not necessary to set JBOSS_HOME.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049944#4049944

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049944



More information about the jboss-user mailing list