File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP Applet + nativelib + UnsatisfiedLinkError

 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic