2 Replies Latest reply on Dec 6, 2004 7:05 PM by mthaddon

    Missing /lib/tools.jar

    mthaddon

      Hi Folks,

      Newbie here. I have a problem when starting up JBoss. This is on RHEL3. I'm using Java(TM) 2 SDK, Standard Edition, Version 1.4.2.

      When I run the run.sh script, I get the following:

      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.

      I've checked in the run.sh, and the important part seems to be this:

      if [ "x$JAVAC_JAR" = "x" ]; then
      JAVAC_JAR="$JAVA_HOME/lib/tools.jar"
      fi

      if I run "echo $JAVA_HOME" at the console, I get "/usr/java/j2sdk1.4.2_02", so I would don't understand why it seems to be populating this as a empty variable in this portion of the script. I've also verified that $JAVA_HOME/lib/tools.jar exists.

      I get a bunch of more serious errors later on down the line, but for the moment I'm assuming they're related to this. Can anyone help?

      Thanks, Tom

        • 1. Re: Missing /lib/tools.jar
          starksm64

          The only error a missing tools.jar will cause is failure to compile jsp pages. I would assume the /usr/java/j2sdk1.4.2_02 installation is corrupt. List the contents of the /usr/java/j2sdk1.4.2_02/lib directory.

          • 2. Re: Missing /lib/tools.jar
            mthaddon

            My mistake. It's a case of just setting the JAVA_HOME variable correctly for the user that's running the application. Because run.sh is being called to run as a different user, the JAVA_HOME variable for that user isn't set correctly, even though the user that's calling the script has it set correctly.