3 Replies Latest reply on Aug 10, 2006 3:38 AM by VisolveGroup

    How to set classpath in Unix

    Jayanth M Newbie

      Hi everyone,
      I had installed JBoss in Unix. But when start the JBoss using the following command

      ./run.sh

      am getting the message

      ./run.sh: /home/cmpcore/jdk141_05/bin/java: not found

      and i think its the problem with the classpath. So any can help me to solve this problem? Please help.

      Thanks,
      Jayanth.


        • 1. Re: How to set classpath in Unix
          Louis TOURNAYRE Newbie

          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 M Newbie

            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
              VisolveGroup Novice

              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.