5 Replies Latest reply on Oct 23, 2002 2:28 AM by Weston M. Price

    CLASSPATH and tools.jar

    john ware Newbie

      When I run jboss 3.0.3 like this:

      java -cp "$CLASSPATH" -jar run.jar

      the server starts up fine but when I try to access localhost:8080/jmx-console I get the sun.tools.javac.Main classdef not found error.

      16:37:42,818 WARN [jbossweb] WARNING: Exception for /jmx-console/
      java.lang.NoClassDefFoundError: sun/tools/javac/Main
      at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)

      I assume that tools.jar is in my CLASSPATH for I can run:

      java -cp "$CLASSPATH" sun.tools.javac.Main and I get the javac usage message as expected.

      It seems like the servlet container is not being passed the classpath correctly by jboss. Does jetty get it's classpath from jboss or read an environment variable.


      john ware