-
1. Re: How to set classpath in Unix
l.tournayre Aug 9, 2006 8:36 AM (in response to jayanth.sm)It's not a classpath trouble, it's your JAVA_HOME that is incorrect, it's point to : /home/cmpcore/jdk141_05
the run.sh use the JAVA_HOME like this.
$JAVA_HOME/bin/java
Regards.
Louis -
2. Re: How to set classpath in Unix
jayanth.sm Aug 9, 2006 8:58 AM (in response to jayanth.sm)Hi Louis,
Thanks for the reply. Yes I found out that problem and i was able to solve it. Now am getting another problem. When i start JBoss by giving the command ./run.sh and getting the following message,
run.sh: Missing file: /lib/tools.jar
run.sh: Unexpected results may occur. Make sure JAVA_HOME points to a JDK and not a JRE.
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/cmpcore/jboss-4.0.0
JAVA: java
JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh
CLASSPATH: /home/cmpcore/jboss-4.0.0/bin/run.jar:/lib/tools.jar
=========================================================================
JAVA_HOME variable in run.sh is not set for tools.jar. Right? can you please tell how make the change? where exactly in run.sh file should we make the change?
Thanks,
Jayanth. -
3. Re: How to set classpath in Unix
visolvejboss Aug 10, 2006 3:38 AM (in response to jayanth.sm)Hello,
JAVA: java
It denotes that the JAVA_HOME environment variable not set.
You can set the JAVA_HOME as follows.#export JAVA_HOME=<path to the JDKfolder>
For example,
#export JAVA_HOME=/opt/java1.4
And make sure that, The path should NOT points to the JRE.
Hope, This might solve your problem.