Ah, much better. Thanks Diego. I owe you a box of donuts. FedEx okay?
Hi Jon,
Hopefully this will fix your problem J
Cheers,
Diego
Thanks Diego,
I don’t appear to have antlr. I do have antenna V3 however. There is a project in the MTJ 1.0M5 repository for org.antlr.runtime, but it contains only a single readme file. I’ll try to get a hold of it elsewhere and see how it works out.
Regards,
Jon
Hi,
It appears that you are having problems with one of our plug-in dependencies theorg.antlr.runtime. MTJ requires org.antlr.runtime version 3.0 to run correctly.
Could you check which version of antlr is installed in your eclipse? Maybe this plug-in was overridden by another bundle.
Regards,
Diego
Hi all,
I am using MTJ 1.0M5 (Win XP) and seem to have trouble using the preprocessor.
I am trying to package a tiny test application for the Sun WTK DefaultColorPhone and DefaultGrayPhone. I get the following exceptions when I enable preprocessing. The packaging goes fine with preprocessing disabled. I am not yet using any preprocessing symbols in my test app.
Is this a known bug? Or perhaps I am missing some essential configuration item. Any thoughts?
Regards,
Jon
---
Installation : Version: 3.4.1 Build id: M20080911-1700
MTJ : MTJ 1.0M5
java.runtime : Java(TM) SE Runtime Environment (build 1.6.0_12)
os.name: : Windows XP Professional, Service Pack 3
<image001.jpg>
java.lang.NoClassDefFoundError: org/antlr/runtime/tree/CommonTree
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.preprocess(PreprocessorBuilder.java:662)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder$ResourceVisitor.visit(PreprocessorBuilder.java:220)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.doPreprocessing(PreprocessorBuilder.java:468)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.build(PreprocessorBuilder.java:335)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:218)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:360)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:516)
at org.eclipse.core.internal.resources.Project.build(Project.java:94)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.createPackageForInactiveConfigs(MidletSuiteProject.java:397)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.createPackage(MidletSuiteProject.java:370)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.createPackageForProject(AbstractCreatePackageAction.java:125)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.access$0(AbstractCreatePackageAction.java:115)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction$2.run(AbstractCreatePackageAction.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.doPackageCreation(AbstractCreatePackageAction.java:253)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.run(AbstractCreatePackageAction.java:102)
at org.eclipse.mtj.ui.internal.editors.jad.form.pages.OverviewEditorPage.linkActivated(OverviewEditorPage.java:495)
at org.eclipse.ui.forms.widgets.FormText.activateLink(FormText.java:1549)
at org.eclipse.ui.forms.widgets.FormText.handleMouseClick(FormText.java:1352)
at org.eclipse.ui.forms.widgets.FormText.access$16(FormText.java:1324)
at org.eclipse.ui.forms.widgets.FormText$6.mouseUp(FormText.java:443)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:207)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.tree.CommonTree
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 64 more
java.lang.NoClassDefFoundError: org/antlr/runtime/tree/CommonTree
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.preprocess(PreprocessorBuilder.java:662)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder$ResourceVisitor.visit(PreprocessorBuilder.java:220)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:106)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:58)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:68)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:104)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:88)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.doPreprocessing(PreprocessorBuilder.java:468)
at org.eclipse.mtj.core.internal.preprocessor.PreprocessorBuilder.build(PreprocessorBuilder.java:335)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:633)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:218)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:360)
at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:516)
at org.eclipse.core.internal.resources.Project.build(Project.java:94)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.createPackageForInactiveConfigs(MidletSuiteProject.java:397)
at org.eclipse.mtj.core.model.project.impl.MidletSuiteProject.createPackage(MidletSuiteProject.java:370)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.createPackageForProject(AbstractCreatePackageAction.java:125)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.access$0(AbstractCreatePackageAction.java:115)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction$2.run(AbstractCreatePackageAction.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.doPackageCreation(AbstractCreatePackageAction.java:253)
at org.eclipse.mtj.ui.internal.actions.packaging.AbstractCreatePackageAction.run(AbstractCreatePackageAction.java:102)
at org.eclipse.mtj.ui.internal.editors.jad.form.pages.OverviewEditorPage.linkActivated(OverviewEditorPage.java:495)
at org.eclipse.ui.forms.widgets.FormText.activateLink(FormText.java:1549)
at org.eclipse.ui.forms.widgets.FormText.handleMouseClick(FormText.java:1352)
at org.eclipse.ui.forms.widgets.FormText.access$16(FormText.java:1324)
at org.eclipse.ui.forms.widgets.FormText$6.mouseUp(FormText.java:443)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:207)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
Caused by: java.lang.ClassNotFoundException: org.antlr.runtime.tree.CommonTree
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:481)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:397)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:385)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 64 more
---
Senior Software Developer, Eclipse Tools
Research In Motion
905-629-4746 x15333 / Mobile: 519 500-23167
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful.
---------------------------------------------------------------------