DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page problem using fast code eclipse plugin
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Lightbulb problem using fast code eclipse plugin - 06-15-2009, 12:56 AM

Hello all,


I am trying to use Fast code eclipse plugin in my small project (application). Below are the steps I followed


I have downloaded fastcode_1.1.9.1 jar and placed in plugin folder of eclipse. I am able to find the fast code tab under my eclipse(windows-->preferences)but when I am trying to configure 'JunitPreferancePage' its throwing error saying 'An error has occurred. See error log for more details'.


The error log file from workspace/.metadata is as follows


!ENTRY org.eclipse.jface 4 2 2009-06-09 15:35:38.259
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NoClassDefFoundError: org/apache/velocity/context/Context
at org.fastcode.preferences.JUnitPreferencePage.creat eFieldEditors(JUnitPreferencePage.java:141)
at org.eclipse.jface.preference.FieldEditorPreference Page.createContents(FieldEditorPreferencePage.java :227)
at org.eclipse.jface.preference.PreferencePage.create Control(PreferencePage.java:233)
at org.eclipse.jface.preference.PreferenceDialog.crea tePageControl(PreferenceDialog.java:1456)
at org.eclipse.jface.preference.PreferenceDialog$13.r un(PreferenceDialog.java:1213)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
at org.eclipse.core.runtime.Platform.run(Platform.jav a:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil. java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnab le.java:199)
at org.eclipse.jface.preference.PreferenceDialog.show Page(PreferenceDialog.java:1207)
at org.eclipse.ui.internal.dialogs.FilteredPreference Dialog.showPage(FilteredPreferenceDialog.java:433)
at org.eclipse.jface.preference.PreferenceDialog$9.se lectionChanged(PreferenceDialog.java:698)
at org.eclipse.jface.viewers.StructuredViewer$3.run(S tructuredViewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner .java:37)
at org.eclipse.core.runtime.Platform.run(Platform.jav a:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil. java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnab le.java:199)
at org.eclipse.jface.viewers.StructuredViewer.firePos tSelectionChanged(StructuredViewer.java:840)
at org.eclipse.jface.viewers.StructuredViewer.handleP ostSelect(StructuredViewer.java:1153)
at org.eclipse.jface.viewers.StructuredViewer$5.widge tSelected(StructuredViewer.java:1178)
at org.eclipse.jface.util.OpenStrategy.firePostSelect ionEvent(OpenStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenS trategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStra tegy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableL ock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessa ges(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(D isplay.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3296)
at org.eclipse.jface.window.Window.runEventLoop(Windo w.java:820)
at org.eclipse.jface.window.Window.open(Window.java:7 96)
at org.eclipse.ui.internal.OpenPreferencesAction.run( OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Actio n.java:498)
at org.eclipse.jface.action.ActionContributionItem.ha ndleWidgetSelection(ActionContributionItem.java:54 6)
at org.eclipse.jface.action.ActionContributionItem.ac cess$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5. handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(Event Table.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.ja va:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents( Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Di splay.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Wor kbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench. java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workben ch.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench. java:466)
at org.eclipse.core.databinding.observable.Realm.runW ithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWork bench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Pl atformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplica tion.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle. run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.runApplication(EclipseAppLauncher.java: 106)
at org.eclipse.core.runtime.internal.adaptor.EclipseA ppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.ru n(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework( Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.ja va:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:11 73)


can any body help me out

Thanks,
rocky123
Reply With Quote
  (#2 (permalink)) Old
Active Contributor
 
Posts: 62
Thanks: 0
Thanked 6 Times in 6 Posts
Join Date: Jun 2009
Default 06-16-2009, 03:27 AM

Hi, rocky

I haven't used the fast code plugin. But according the error information, NoClassDefFoundError: org/apache/velocity/context/Context
it seems that you need to check is the jar package which this class in exist or is it under the classPath folder. org/apache/velocity/context/Context


www.eclaxy.com
let's perfect the eclipse!
Reply With Quote
  (#3 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default 06-17-2009, 12:38 AM

yes you are right. At the same time the strange thing is fastcode_1.1.9.1 jar has velocity.jar which intern has the class for which its throwing NoClassDefFoundError. (verified using de-complier)

Please reply if any one using the fast code eclipse plugin.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem while invoking web service through code ashu47202 Java 4 10-09-2009 01:57 PM
problem in plugin develpment in eclipse davenci Java 10 02-23-2009 07:00 AM
Can't install Axis2 Code Gen plugin on Mac Tom Bates Eclipse 1 01-27-2009 04:58 PM
Problem debugging SWT/JFace code... jorgedieguez Eclipse 1 08-19-2008 05:37 PM
How to distinguish, by code, between RCP and plugin? gamby Eclipse 1 02-15-2008 06:18 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com