Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-ercp-dev] error while accessing pim api in eRCP


If you are running a CDC JVM in order to run eRCP, then you very likely do not have MIDP classes available in your JRE, and that is what the exception is saying.
Since the PIM API implementation probably relies on native code, it is also unlikely that you could just add the MIDP classes to your classpath.
So, I'm afraid you may be out of luck as far as just  using MIDP API.  Depending on what you want to do, you may be able to do similar function using other API in CDC or eRCP. If not, it is possible to create your own PIM API and use JNI to access the PIMs.




"Madalasa Bondalapati" <Madalasab@xxxxxxxxxxx>
Sent by: dsdp-ercp-dev-bounces@xxxxxxxxxxx

11/11/2008 02:41 AM

Please respond to
DSDP ercp list <dsdp-ercp-dev@xxxxxxxxxxx>

To
"DSDP ercp list" <dsdp-ercp-dev@xxxxxxxxxxx>
cc
Subject
[dsdp-ercp-dev] error while accessing pim api in eRCP





Hi,
 
I have developed an application in eRCP and I am trying to access PIM api from it. I am getting an exception
 
java.lang.NoClassDefFoundError: com.sun.midp.main.Configuration
      at javax.microedition.pim.PIM.getInstance(PIM.java:128)
      at com.ibm.lotusphere.rcp.UI.makeUI(UI.java:143)
      at com.ibm.lotusphere.rcp.DeviceView.createPartControl(DeviceView.java:10)
      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.ercp.hworkbench.DefaultView.launchSelection(Unknown Source)
      at com.ibm.ercp.hworkbench.DefaultView.open(Unknown Source)
      at org.eclipse.jface.viewers.StructuredViewer$2.run(Unknown Source)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
      at org.eclipse.core.runtime.Platform.run(Platform.java:843)
      at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)
      at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)
      at org.eclipse.jface.viewers.StructuredViewer.fireOpen(Unknown Source)
      at org.eclipse.jface.viewers.StructuredViewer.handleOpen(Unknown Source)
      at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Unknown Source)
      at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(Unknown Source)
      at org.eclipse.jface.util.OpenStrategy.access$3(Unknown Source)
      at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:612)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:647)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:619)
      at org.eclipse.swt.widgets.Control.pointerCallback(Control.java:2343)
      at com.ibm.ugl.p3ml.OS.Display_ReadAndDispatch(Native Method)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1404)
      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)
 
 
Can anybody help in resolving this issue
 
 
Thanks in advance,
Madalasa

--------------------------------------------------------------------------------------------

This message, including any attachments, contains confidential information
intended for a specific individual and purpose, and is intended for the addressee only. Any unauthorized disclosure, use, dissemination, copying, or distribution of
this message or any of its attachments or the information contained in this e-mail, or the taking of any action based on it, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail and delete this message.

--------------------------------------------------------------------------------------------

_______________________________________________
dsdp-ercp-dev mailing list
dsdp-ercp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-ercp-dev


Back to the top