aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Problem with JavaCC in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem with JavaCC in Eclipse" Watch "Problem with JavaCC in Eclipse" New topic

Problem with JavaCC in Eclipse

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
Dear Sirs:

I downloaded the zip file and unzipped to the eclipse directory, the features and the plug ins where copied to the respective directories. However, I cannot follow the instructions in;
I don't get the option to create a JavaCC template file. Also, there is nothing in help about JavaCC.

Thanks for your help,

Alejandro Barrero

Your help will be greatly appreciated,
Alejandro Barrero
Jeff Rummings
Ranch Hand

Joined: Dec 20, 2007
Posts: 42

Help - Software updates - Find and install...

Add new remote site

Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302

That worked perfect; thank you. Everywhere it just says to unzip.

Thanks, Alejandro Barrero
Alejandro Barrero
Ranch Hand

Joined: Aug 01, 2005
Posts: 302
All is not well; now I have help for JavaCC, but when I try to follow the instructions in "JavaCC Eclipse Plugin v1.3 for Eclipse 3.0":

4) Create a new JavaCC file :
Select the "testjj" package and Menu "File" -> "New" -> "Other..."
Select Wizard "JavaCC" -> "JavaCC Template file"

I cannot get the wizard "JavaCC".

I don't know what i am doing wrong. Please help.
gunjan titiya

Joined: Feb 02, 2009
Posts: 1
I also have same problem. i have downloaded EclipseJavaCC-1.5.12 from and unzipped to eclipse but still it is not allowing me to create .jj file. it showing error that

Unable to create this part due to an internal error. Reason for the failure: The editor class could not be instantiated. This usually indicates that the editor's class name was mistyped in plugin.xml.

java.lang.ClassNotFoundException: sf.eclipse.javacc.editors.JJEditor
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(
at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(
at org.eclipse.ui.internal.WorkbenchPlugin$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(
at org.eclipse.ui.internal.registry.EditorDescriptor.createEditor(
at org.eclipse.ui.internal.EditorManager.createPart(
at org.eclipse.ui.internal.EditorReference.createPartHelper(
at org.eclipse.ui.internal.EditorReference.createPart(
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(
at org.eclipse.ui.internal.EditorReference.getEditor(
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(
at org.eclipse.ui.internal.WorkbenchPage.access$9(
at org.eclipse.ui.internal.WorkbenchPage$
at org.eclipse.swt.custom.BusyIndicator.showWhile(
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
at org.eclipse.ui.internal.WorkbenchPage.openEditor(
at org.eclipse.ui.ide.IDE.openEditor(
at org.eclipse.ui.ide.IDE.openEditor(
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$
at org.eclipse.jface.viewers.StructuredViewer$
at org.eclipse.ui.internal.JFaceUtil$
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(
at org.eclipse.jface.util.OpenStrategy.access$2(
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.ui.internal.Workbench.runEventLoop(
at org.eclipse.ui.internal.Workbench.runUI(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.core.internal.runtime.PlatformActivator$
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(
at org.eclipse.core.launcher.Main.basicRun(
at org.eclipse.core.launcher.Main.main(
I agree. Here's the link:
subject: Problem with JavaCC in Eclipse
Similar Threads
Classes description
Java Parser.
JavaCC Tutorials
JavaCC with Ant
JavaCC and Eclipse