Hi,
This is my first topic on this forum, so treat me as a new comer and please help me out solving my issue.
My problem is as follows:
In my application I am trying to create an object of a class ScrolledComposite. Earlier this class was not recognized at compile time, I added the corresponding jar in the project and my issue got resolved. Now when I am trying to run my application, following error is coming:
java.lang.NoClassDefFoundError: org.eclipse.swt.custom.ScrolledComposite
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:86)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:147)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1247)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Unknown Source)
at org.eclipse.ui.internal.registry.ViewDescriptor.createView(Unknown Source)
at org.eclipse.ui.internal.ViewFactory.busyRestoreViewHelper(Unknown Source)
at org.eclipse.ui.internal.ViewFactory.busyRestoreView(Unknown Source)
at org.eclipse.ui.internal.ViewFactory.restoreView(Unknown Source)
at org.eclipse.ui.internal.Perspective.showView(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.busyShowView(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.showView(Unknown Source)
at org.eclipse.ui.internal.WorkbenchPage.showView(Unknown Source)
at com.ibm.lotusphere.rcp.LoginPage.widgetSelected(LoginPage.java:84)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:476)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1550)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1405)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at com.ibm.ercp.hworkbench.eWorkbench.run(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:203)
at java.lang.reflect.Method.invoke(Method.java:252)
at org.eclipse.core.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Unknown Source)
at org.eclipse.core.launcher.Main.run(Unknown Source)
at org.eclipse.core.launcher.Main.main(Unknown Source)
Unhandled event loop exception
I understand why the error is coming. The reason is that my jre is j9w jclDevice and the location where it looks for all the jars and dlls is the place where my swt.jar is missing.
Approach I took: I copied the jar and associated dlls at location where my target location was defined for the application. It did not work. Second approach was that I put the jar and dlls in the lib folder where j9w jre is located. These two locations are in eclipse , plugins folder. But nothing seems to be working fine.
Please suggest wht approach should I take? It's very important.
regards
Saurabh