Could not find main class JAVACC

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.