<div dir="ltr">FYI, the option <span style="font-family:arial,sans-serif;font-size:13px"> "-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</span><div style>
<font face="arial, sans-serif">I usually create a shell/bat script for properly start the Java application.</font></div><div style><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Seb<br>
</font><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:30 AM, mahendra <span dir="ltr"><<a href="mailto:mahendra123awale@gmail.com" target="_blank">mahendra123awale@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for your replies Simeon and Gerrick.<br>
<br>
Now i tried to include the *.so files in lib folder and when i invoked the<br>
java program i passed the lib folder location as native library path (have a<br>
look below). Still i get following error:<br>
<br>
java -Djava.library.path=lib/ -cp testVTK.jar tree<br>
-----------------------------------------------------------------------------------------------------------------------------------------------<br>
<div class="im">Exception in thread "main" java.lang.UnsatisfiedLinkError:<br>
</div>/home/mahendra/Desktop/testIt/dist/lib/libvtkCommonJava.so.5.8.0:<br>
libvtkCommon.so.5.8: cannot open shared object file: No such file or<br>
directory<br>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1807)<br>
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1732)<br>
at java.lang.Runtime.loadLibrary0(Runtime.java:823)<br>
at java.lang.System.loadLibrary(System.java:1028)<br>
at tree.<clinit>(tree.java:7)<br>
Could not find the main class: tree. Program will exit.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-java-application-for-distribution-tp5720775p5720818.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-java-application-for-distribution-tp5720775p5720818.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>