Kevin Zou writes:
 > jdk1.3.1, jdee2.2.9beta12.
 > 
 > "javac" compiler option works fine. When use "javac server" compiler option,
 > I get exception as following.
 > 
 >  
 > java.lang.ClassNotFoundException: com.sun.tools.javac.Main

The beanshell vm cannot find javac. It is located in the tools.jar
file in the lib subdirectory of the JDK.  If the JDEE can find
tools.jar, it includes it in the beanshell's classpath. If not, it
signals an error. Since the JDEE did not signal an error, it must have
found tools.jar and put it in the beanshell classpath. I am therefore
puzzled as to why you are getting this error. Without more information,
I cannot help you.

- Paul


 >      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 >      at java.security.AccessController.doPrivileged(Native Method)
 >      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 >      at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 >      at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 >      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 >      at java.lang.Class.forName0(Native Method)
 >      at java.lang.Class.forName(Class.java:120)
 >      at jde.util.CompileServer.<clinit>(CompileServer.java:46)
 >      at java.lang.Class.forName0(Native Method)
 >      at java.lang.Class.forName(Class.java:120)
 >      at bsh.BshClassManager.plainClassForName(BshClassManager.java:143)
 >      at
 > bsh.classpath.ClassManagerImpl.getClassForName(ClassManagerImpl.java:165)
 >      at bsh.BshClassManager.classForName(BshClassManager.java:123)
 >      at bsh.NameSpace.classForName(NameSpace.java:622)
 >      at bsh.NameSpace.getClassImpl(NameSpace.java:612)
 >      at bsh.NameSpace.getClass(NameSpace.java:521)
 >      at bsh.Name.consumeNextObjectField(Name.java:283)
 >      at bsh.Name.toObject(Name.java:206)
 >      at bsh.Name.toObject(Name.java:189)
 >      at bsh.Name.invokeMethod(Name.java:649)
 >      at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:53)
 >      at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:69)
 >      at bsh.Interpreter.run(Interpreter.java:411)
 >      at bsh.Interpreter.main(Interpreter.java:361
 > Compilation exited abnormally with code ) at Tue Oct 29 13:08:29
 > 

Reply via email to