Skip to main content

JDIC in eclipse rcp application

No replies
edvjacek
Offline
Joined: 2010-07-13
Points: 0

Hi,

I try to use JDIC. The first example which I want to check is to send a email with attachment via default mail client (case #6 in "Examples of Using the JDIC API" for org.jdesktop.jdic.desktop package). I work on Eclipse on Windows XP.

1. I make normal (not RCP) Java project. I have jdic.jar and jdic_stub_windows.jar in lib directory and jdic.dll in lib/windows/x86 directory. Both jars are on my classpath. Everything works fine.

2. I make RCP application. Configuration in the same. I get the following error:

java.lang.ClassNotFoundException: org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub_windows
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown Source)
at org.jdesktop.jdic.desktop.Desktop.mail(Unknown Source)

(Desktop.mail is the point where I get the error in my application).

Both jars are in MANIFEST.MF section:
Bundle-ClassPath: .,
lib/jdic.jar,
lib/jdic_stub_windows.jar

Adding:
Bundle-NativeCode: lib/windows/x86/jdic.dll; osname=win32; processor=x86
makes no difference.

What make I wrong? This my first rcp application with native dependence.

Regards,
Jacek