ScrolledComposite classDefNotFoundError for jclDevice j9w

Tell us what you think about our book and report any errata. Sample chapters are available at http://www.qualityeclipse.com/

(Note: Previous Editions were called "Eclipse: Building Commercial Quality Plugins")

Moderators: Eric Clayberg, Dan Rubel

ScrolledComposite classDefNotFoundError for jclDevice j9w

Postby Saurabh » Wed Jul 16, 2008 3:13 am

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
Saurabh
 
Posts: 2
Joined: Wed Jul 16, 2008 2:16 am

Re: ScrolledComposite classDefNotFoundError for jclDevice j9w

Postby Eric Clayberg » Wed Jul 16, 2008 3:54 am

Are you trying to build an eSWT/eRCP app?

If so, ScrolledComposite isn't supported in that environment.

I don't know anything about the j9w jclDevice JRE other than what little I can find via Google.

Problems like this are best directed to IBM.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: ScrolledComposite classDefNotFoundError for jclDevice j9w

Postby Saurabh » Fri Jul 18, 2008 7:42 pm

Hi,

First of all I would like to thank you that you find sometime and replied me for the issue I am facing.

Yes, I want to build an application using eSWT/eRCP. I got what you are saying that ScrolledComposite is not supported for these application development. Actually I will explain what I am trying to achieve. I want to develop an application which will run on PDA device. Let say my first screen has 10 elements(text box). All the elements will not be displayed on screen because of the size of the screen. So, what is happening is that for eg. 4 text boxes are displaying properly and remaining 6 are going below the screen and I am not able to access those 6 text boxes. That's why I want my base(which holds these 10 text boxes) to be scrollable, so that I can scroll down and access all the elements.

As you said, ScrolledComposite is not available, what are the other ways in which I can achieve the same behavior using Composite. Please suggest anything, as I had gone through the methods available for Composite and I think I am not getting the right path to proceed.

Any suggestion will be helpful.

thanks and regards

Saurabh
Saurabh
 
Posts: 2
Joined: Wed Jul 16, 2008 2:16 am

Re: ScrolledComposite classDefNotFoundError for jclDevice j9w

Postby Eric Clayberg » Sun Jul 20, 2008 4:46 pm

Nothing comes to mind. I don't build mobile apps.

Try the Eclipse eRCP newsgroup.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Book: Eclipse Plug-Ins (3rd Edition)

Who is online

Users browsing this forum: No registered users and 1 guest