Recently, JAVACC has been constantly updating eclipse with the beta version of Eclipse 3.6. Encountered the following problems:
Phenomenon:
JavaCC in the JavaCC console in Eclipse plugin:
>java-classpath D:/software/develop/ide/eclipse3.6rc1/plugins/sf.eclipse.javacc_1.5.22/javacc.jar JAVACC PLSQL.JJ Error:could not find main class Javacc JAVA.LANG.NOCLASSDEFFOUNDERROR:JAVACC at sun.launcher.LauncherHelper.ch Eckandloadmain (launcherhelper.java:198) caused BY:JAVA.LANG.CLASSNOTFOUNDEXCEPTION:JAVACC at Java.net.urlclassloader$1.run (urlclassloader.java:299) at Java.net.urlclassloader$1.run (URLClassLoader.java:288) At Java.security.AccessController.doPrivileged (Native method) at Java.net.URLClassLoader.findClass ( urlclassloader.java:287) at Java.lang.ClassLoader.loadClass (classloader.java:422) at sun.misc.launcher$ Appclassloader.loadclass (launcher.java:325) at Java.lang.ClassLoader.loadClass (classloader.java:355) at Sun.launcher.LauncherHelper.checkAndLoadMain (launcherhelper.java:195) Exception in thread "main"
Solution:
To the workspace project root, open. Settings/sf.eclipse.javacc.prefs, modify the values of the Runtime_jjjar and Runtime_jtbjar two properties, and set them to the correct path.
Description:
JavaCC Eclipse Plugin Sets the classpath path of the command line to the project path, changes the eclipse directory, the path is not automatically updated, or points to the old directory, in. Setting the presence of local environment-related properties is a bad design.