My favorites | Sign in
Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 15: Java UnsatisfiedLinkError
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by dleifker, Jul 02, 2008
What steps will reproduce the problem?
1. Installed from svn revision 148

2. Created package libkml of src/swig/*.java

3. Compiled example java application CreatePlacemark.java from examples,
after importing libkml.*

4. Ran into following exception.

Exception in thread "main" java.lang.UnsatisfiedLinkError:
libkml.kmldomJNI.KmlFactory_GetFactory()J
        at libkml.kmldomJNI.KmlFactory_GetFactory(Native Method)
        at libkml.KmlFactory.GetFactory(KmlFactory.java:44)
        at kmlapp.CreatePlacemark.main(CreatePlacemark.java:46)

 
Linux x64 
Java 1.6.0_06 x64
libkml.jar
315 KB   Download
Comment 1 by wedgef5, Oct 20, 2008
I ran into this too.  I found that the call to loadLibrary in the example needs to be
loading "kmldom_swig_java".

Comment 2 by andrew.jones, Jul 07, 2009
I ran into the same error and the problem was fixed by adding:

-Djava.library.path=/usr/local/lib/libkml

on the JVM command line.
Sign in to add a comment