• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

JNLP Applet + nativelib + UnsatisfiedLinkError

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Solved here : http://forums.sun.com/thread.jspa?threadID=5426066&tstart=0
 
reply
    Bookmark Topic Watch Topic
  • New Topic