File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes JNLP Applet + nativelib + UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JNLP and Web Start
Reply Bookmark "JNLP Applet + nativelib + UnsatisfiedLinkError" Watch "JNLP Applet + nativelib + UnsatisfiedLinkError" New topic
Author

JNLP Applet + nativelib + UnsatisfiedLinkError

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2858

Hi all,

I'm developing a Java 3D Applet using JNLP Applet Plug In. In this applet I'm using JNA for loading my library(dll) which is used by the applet business code.

Ican load all the 5 libraries (4 for Java 3D and 1 for my applcation library). I use the custom Class Loader.

Now the problem is, when I load Java 3D jars and dll, the system throws "UnsatisfiedLinkError" for not finding the "CLP.dll" library, BUT it load the same lib and execute w/o any problem if I don't load the Java 3d libs ??

What are the possible cause, any kind of help will be greatly appricaiated.
HTML

JNLP

2 things:
1. I'm not able to figure out whether this is JNLP or JNA problem ?
2. My custom class loader loads all the .dll into the "Temp" (Windows %TEMP%) directory renaming the dll like "extensionXXXX.dll" and overrides the java.lang.ClassLoader#findLibrary() method.

Cross posted @ java.net

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32421
I don't know what's going wrong here, but I've been able to get native libraries to work with applets by using the JNLPAppletLauncher class.


Android appsImageJ pluginsJava web charts
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2858

Yes, the JNLPAppletLauncher is the next thing I'm thinking to try out ;)
It may be the custom class loader which messing the things up.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2858

Solved here : http://forums.sun.com/thread.jspa?threadID=5426066&tstart=0
 
 
subject: JNLP Applet + nativelib + UnsatisfiedLinkError
 
MyEclipse, The Clear Choice