4 Replies Latest reply on Jun 24, 2002 9:33 AM by richcal

    tools.jar on Mac OS X

    johanneslietz

      Hi!

      I know this was mentioned before, but I couldn't find a solution for this:

      JBoss is expecting the tools.jar under $JAVA_HOME/lib, but the JDK under OS X has not any.

      Who knows the solution for this, and why the solution has not found it's way into the distribution (if any :))?

      Thanks a lot,

      Johannes

        • 1. Re: tools.jar on Mac OS X

          This was posted somewhere on the dev-list earlier
          this year, but i can't find it searching of the forums.
          You need to find the location for the compiler,
          it is only required if you are using jsp.

          Regards,
          Adrian

          • 2. Re: tools.jar on Mac OS X

            I just set JAVA_HOME to /usr and jsp pages work fine even though jboss complains about the missing tools.jar

            • 3. Re: tools.jar on Mac OS X
              johanneslietz

              Thanks for your replies.

              I just deployed a simple WAR-file containing some JSPs, and as they compiled I resume the warning can be ignored...

              Anyway the startup script should be modified not to give that warning.

              • 4. Re: tools.jar on Mac OS X
                richcal

                I read on the Jboss forums a while back that Apple package tools.jar in their own archive called classes.jar.

                I'm using jboss-3.0.0RC3_tomcat-4.0.3.zip.

                What I did to get rid of the error on startup is replace:

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

                with

                if [ "x$JAVAC_JAR" = "x" ]; then
                JAVAC_JAR="$JAVA_HOME/../Classes/classes.jar"
                fi

                in the run.sh file.

                Regards
                Richard