[vtkusers] VTK+java application for distribution
Sebastien Jourdain
sebastien.jourdain at kitware.com
Tue May 21 13:31:14 EDT 2013
FYI, the option "-Dvtk.lib.dir=..." do not properly work and to my
knowledge, it is easier to set the PATH/LD_LIBRARY_PATH/DYLD_LIBRARY_PATH
environment variable based on the system
I usually create a shell/bat script for properly start the Java application.
Seb
On Tue, May 21, 2013 at 11:30 AM, mahendra <mahendra123awale at gmail.com>wrote:
> Thanks for your replies Simeon and Gerrick.
>
> Now i tried to include the *.so files in lib folder and when i invoked the
> java program i passed the lib folder location as native library path (have
> a
> look below). Still i get following error:
>
> java -Djava.library.path=lib/ -cp testVTK.jar tree
>
> -----------------------------------------------------------------------------------------------------------------------------------------------
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/mahendra/Desktop/testIt/dist/lib/libvtkCommonJava.so.5.8.0:
> libvtkCommon.so.5.8: cannot open shared object file: No such file or
> directory
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> at java.lang.System.loadLibrary(System.java:1028)
> at tree.<clinit>(tree.java:7)
> Could not find the main class: tree. Program will exit.
>
>
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/VTK-java-application-for-distribution-tp5720775p5720818.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130521/110159a5/attachment.htm>
More information about the vtkusers
mailing list