[vtkusers] OS X / Java bindings
Eric E. Monson
emonson at cs.duke.edu
Tue Mar 24 15:42:36 EDT 2009
Hey Felix,
The two environment variables that (for me, at least) need to be set
are CLASSPATH and JAVA_LIBRARY_PATH, e.g.:
export CLASSPATH=$CLASSPATH:/Users/emonson/Programming/VTK_cvs/VTK/
build/bin/vtk.jar:.
export JAVA_LIBRARY_PATH=$JAVA_LIBRARY_PATH:/Users/emonson/Programming/
VTK_cvs/VTK/build/bin
-Eric
------------------------------------------------------
Eric E Monson
Duke Visualization Technology Group
On Mar 24, 2009, at 12:54 PM, Michael Jackson wrote:
> It has been a looooong time since I used java but isn't there
> something about the CLASAPATH setting that needs to also point to
> your .jnilibs in addition to the normal java jar files?
> Just a thought.
>
> ---
> Mike Jackson www.bluequartz.net
>
>
>
> On Mar 24, 2009, at 12:28 PM, Felix Fischer wrote:
>
>> Hi all,
>>
>> at http://public.kitware.com/Bug/view.php?id=7137 I have found a
>> bug report that is telling me that is possible to run VTK on OS X
>> with Java bindings. The past days I have tried the same, but
>> without success. Both on Windows and Linux it compiled successfully
>> und runs perfectly.
>>
>> On OS X there are (runtime) problems. I have tried Carbon, Cocoa
>> and X11 settings. Compilation with Java bindings is always fine.
>> When starting any VTK example (e. g. Cone), it gives
>> "java.lang.UnsatisfiedLinkError" when processing the vtkCommon
>> library (the libvtk*.dylib / *.jnilib files are definitively found,
>> LD_LIBRARY_PATH is set).
>>
>> I tried 10.4 and 10.5, both on a PPC and an Intel-machine. I tried
>> Java5 and Java6 (Intel). I tried 32 Bit and 64 Bit (10.5, Java6). I
>> tried XCode IDE and "pure" gcc/g++. It is always the same
>> (negative) result: compilation is fine (all libraries are created),
>> but at runtime it crashes.
>> "otool -L" does not show any missing dependencies.
>>
>> There must be something that I am missing here. It would be great
>> if somebody can give me a hint.
>>
>> Thanks a lot
>> Felix
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list