trouble loading vtk java library

Matthieu Ferrant ferrant at tele.ucl.ac.be
Wed Mar 1 11:37:55 EST 2000


Hi,

I am having trouble loading the vtkJava library in a java program. I
configured with --whith-java, and compiled vtk without problems on solaris
7.  The classpath and library path variables have been set properly,
compilation goes fine, but at run-time, java does not seem to find the
library (<<Exception in thread "main" java.lang.UnsatisfiedLinkError: no
vtkJava in java.library.path>>), although a 
<<
System.out.println(System.getProperty("java.library.path"));
>>
tells me the path where the library is located actually is in the library
path.

Has anyone already experienced that problem ? 

Any help is welcome !

thanks,

matt
ps : here's my little java program :
import vtk.*;

public final class newViz {
    public static void main(String args[]) {
	System.setProperty("java.library.path","/export/home/ferrant/vtk/java/");
        System.out.println(System.getProperty("java.library.path"));
	System.loadLibrary("vtkJava");

...
etc

Using	
<<
Runtime.getRuntime().load("/export/home/ferrant/vtk/java/libvtkJava.so");
>>
or 
<<
System.load("/export/home/ferrant/vtk/java/libvtkJava.so");
>>

yields same kind of messages.

-- 
M.Ferrant - Ph.D. Student
UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium
Tel. +32-10-478073 Fax. : +32-10-472089
http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list