When I tried to invoke a JSP, javac says that the root cause is "java.lang.NoClassDefFoundError: sun/tools/javac/Main". Is that the tool.jar? How can I fix this?
gsaha
Greenhorn
Joined: Apr 23, 2001
Posts: 6
posted
0
There can be several reason for that 1)set the classpath till web-inf/classes 2)class file not available in classes directory 3)tool.jar not available in classpath
prashant sreenivasan
Greenhorn
Joined: Nov 19, 2000
Posts: 6
posted
0
make the classpath variable include the file JAVA_HOME\lib\tools.jar This should solve the problem Prashant
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
Some application servers (such as Orion) require you to copy tools.jar into the application server lib or root directory. - Peter