pombreda / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

Java UnsatisfiedLinkError #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by dleif...@gmail.com on 2 Jul 2008 at 6:43

Attachments:

GoogleCodeExporter commented 9 years ago
I ran into this too.  I found that the call to loadLibrary in the example needs 
to be
loading "kmldom_swig_java".

Original comment by wedg...@gmail.com on 20 Oct 2008 at 4:37

GoogleCodeExporter commented 9 years ago
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.

Original comment by andrew.j...@gmail.com on 7 Jul 2009 at 7:19