[vtkusers] Strange link error (vtkCommonJava) in Jbuilder 2005 - Mac OS 10.4.5

Keator, David dbkeator at uci.edu
Wed Apr 5 20:33:51 EDT 2006


Hi Folks,

Having trouble figuring this one out.  I've included the vtk.jar file in the
Jbuilder project.  The code compiles fine but the "Run" command in Jbuilder
gives a "no vtkCommonJava in java.library.path" error.  When I copy the
execution string below to an X-window and paste it the application runs just
fine!?#$

So, I've tried adding various paths to the required libraries in Jbuilder
but to no avail.  I understand that the library libvtkCommonJava.dylib* is
in $VTK_HOME/bin but I can't seem to figure out how to tell Jbuilder to look
there since I assume that's the problem.  I assume it runs in X-windows
because my .bashrc PATH and/or DYLD_LIBRARY_PATH points to $VTK_HOME/bin.

Further, I've tried running Jbuilder 2005 and Jbuilder 9 on my PC and have
the same troubles so I'm pretty sure it's not related to the version nor the
platform.

Thanks!

Dave

/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java
-classpath 
"/Users/dbkeator/Desktop/GeneViz/GeneVizJava/classes:/Users/dbkeator/Desktop
/VTK/bin/vtk.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/
Classes/charsets.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.
4.2/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions
/1.4.2/Classes/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1
.4.2/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.
4.2/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.
4.2/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4
.2/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versio
ns/1.4.2/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions
/1.4.2/Home/lib/dt.jar:/System/Library/Frameworks/JavaVM.framework/Versions/
1.4.2/Home/lib/ext/apple_provider.jar:/System/Library/Frameworks/JavaVM.fram
ework/Versions/1.4.2/Home/lib/ext/ldapsec.jar:/System/Library/Frameworks/Jav
aVM.framework/Versions/1.4.2/Home/lib/ext/localedata.jar:/System/Library/Fra
meworks/JavaVM.framework/Versions/1.4.2/Home/lib/ext/sunjce_provider.jar:/Sy
stem/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/im/indicim.
jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/lib/im/t
haiim.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/li
b/jaws.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/l
ib/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/l
ib/netscape.jar"  GeneVizPackage.GeneViz
Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkCommonJava
in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at vtk.vtkPanel.<clinit>(vtkPanel.java:26)
    at GeneVizPackage.VTKCanvas.<init>(VTKCanvas.java:13)
    at GeneVizPackage.GeneViz$Tabbed.<init>(GeneViz.java:68)
    at GeneVizPackage.GeneViz$SplitFrame.<init>(GeneViz.java:50)
    at GeneVizPackage.GeneViz.<init>(GeneViz.java:31)
    at GeneVizPackage.GeneViz.main(GeneViz.java:259)




More information about the vtkusers mailing list