[vtkusers] Running Java Examples on Mac OSX?

John O'Hara jjo135 at psu.edu
Fri Sep 17 12:12:54 EDT 2004


I have been able to successfully build VTK w/ the Java bindings on OSX,
but whenever I run any Java programs (both my own and the examples) all
I get is a bus error. Can anyone provide some insight? I built VTK using
CMake 1.8, GCC 3.3 and Java 1.4.2 with the following options:


BUILD_EXAMPLES OFF 
BUILD_SHARED_LIBS ON 
CMAKE_BACKWARDS_COMPATIBILITY 1.8 
CMAKE_BUILD_TYPE 
CMAKE_INSTALL_PREFIX /usr/local 
VTK_DATA_ROOT /Users/jjo135/Projects/vtk-4.4/VTKData 
VTK_USE_CARBON OFF 
VTK_USE_COCOA ON 
VTK_USE_EXECUTIVES OFF 
VTK_USE_HYBRID ON 
VTK_USE_PARALLEL OFF 
VTK_USE_PATENTED OFF 
VTK_USE_RENDERING ON 
VTK_USE_X OFF 
VTK_WRAP_JAVA ON 
VTK_WRAP_PYTHON OFF 
VTK_WRAP_TCL OFF 



This builds successfully, and examples such as TimeRenderer and
TimeRenderer2 run correctly. However, all of the Java examples exit with
a bus error. The exact error is below



guineapig 11:55am Java>java -classpath ../../bin/vtk.jar:. SimpleVTK
Bus error
guineapig 11:56am Java>setenv
...
LD_LIBRARY_PATH=/Users/jjo135/Projects/vtk-4.4/build/bin/
DYLD_LIBRARY_PATH=/Users/jjo135/Projects/vtk-4.4/build/bin/
....
guineapig 11:56am Java>



Can anyone provide any insight into this problem? 



Regards,

John O'Hara
Penn State Applied Research Labs





More information about the vtkusers mailing list