Skip to main content

Use jdic 0.9.5 with Java Webstart

1 reply [Last post]
shadow82
Offline
Joined: 2006-03-15

Hello,

I implemented a feature in my software which uses jdic 0.9.5 for opening a message window with users default mail client. Everything worked fine until I tried to use it with webstart...

Serveral NullPointerExceptions led me to the fact, that class and binary resources could not be loaded when using webstart... I tested with jdic source code a few days and fixed it, so that it worked for me. But I did it as quick as I could only for my own purpose and so this cannot be the final solution...

Here are the central code locations I changed:

-------------------------------------
At jdic/src/share/classes/org/jdesktop/jdic/desktop/internal/ServiceManager.java

mdServiceManagerStub_getService = ClassLoader
.getSystemClassLoader()
.loadClass("org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub_"
+ JdicManager.getPlatformSuffix() )
.getMethod("getService", new Class[]{String.class});

->

mdServiceManagerStub_getService = ServiceManager.class
.getClassLoader()
.loadClass("org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub_"
+ JdicManager.getPlatformSuffix() )
.getMethod("getService", new Class[]{String.class});
-------------------------------------

At jdic/src/share_applet/classes/org/jdesktop/jdic/init/NativeExtractor.java

-------------------------------------
String localName = "bin/" + getPlatform() + "/" + getArchitecture() + "/" + libName;

->

String localName = libName;
-------------------------------------

I did serveral more little changes to get it completely running, which is probably too much for this thread. If you have questions please do not hesitate...

Is it possible that there is newer source code than in the download section and the CVS ?

Thanks in advance!

best regards
Stefan Hofmann

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rm2000
Offline
Joined: 2009-06-22

Im having the same problems deploying my application using webstart. Im using Java6.

I followed the steps mentioned here :
https://jdic.dev.java.net/documentation/deployment.html

But it dint work. Still getting null pointers exception at jdic.browser.WebBrowser.(Unknown Source)

Can anyone help me out with this?

rm2000