<div dir="ltr">Hi Csaba,<div><br></div><div>I'm hoping that /usr/local was empty as the VTK_JAVA_CLEANUP_INSTALL property will wipe that directory before packaging the jars and so on.</div><div>Usually, when using VTK_JAVA_CLEANUP_INSTALL a local dedicated directory is set to CMAKE_INSTALL_PREFIX. Then you can copy its content anywhere else.</div><div><br></div><div>Regarding your issue I believe that you have all library names. Instead you should be using the helper enum vtkNativeLibrary. Which can be used like in our Demo example here: <a href="https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/Demo.java#L51-L61">https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/Demo.java#L51-L61</a></div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 8, 2017 at 5:37 PM, Csaba Vörös <span dir="ltr"><<a href="mailto:voroscsaba.kanizsa@gmail.com" target="_blank">voroscsaba.kanizsa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="arial, helvetica, sans-serif" style="color:rgb(80,0,80);font-size:12.8px">Dear VTK Developers!</font><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif"><br></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif">I am a BsC student and now I'm writing my degree thesis. I programming in Java and I would use the vtk for the visualize my 3D model. I use MacOS 10.12.2 (Sierra).</font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif">I downloaded from the web the latest version of VTK and I followed the instruction of vtk wiki. I configured the building with CMake and I used make command to compiling. After that I installed the vtk with make install command. In the terminal appeared the /usr/local/lib folder with the vtk.jar and .dylib files.</font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif">At the CMake step I signed over the default ON variables the VTK_WRAP_JAVA, VTK_JAVA_INSTALL, VTK_JAVA_CLEANUP_INSTALL fields. I added the following variables to CMake correspond to VTK wiki and signed ON: <span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px">DVTK_USE_QVTK, </span><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px">DVTK_USE_CA<wbr>RBON, </span><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px">DVTK_USE_GUISUPPORT and </span><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px">DCMAKE_INSTALL_PREFIX=/usr<wbr>/local.</span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px"><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px">I use NetBeans development environment and I setted up the vtk.jar to the Libraries and </span><span style="color:rgb(0,0,0);font-size:12.7px">I added the following Virtual Machine options:</span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif"><span style="color:rgb(0,0,0);font-size:12.7px">-Djava.library.path="/usr/loca<wbr>l/natives-Darwin-x86_64"</span><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px"><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249);color:rgb(0,0,0);font-size:12.7px"><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249)"><span style="font-size:12.7px">When I would run a a simple code thrown the following exception:</span><br><span style="font-size:12.7px">Exception in thread "main" java.lang.UnsatisfiedLinkError<wbr>: no vtkCommonJava in java.library.path</span><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249)"><span style="font-size:12.7px"><br></span></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249)"><span style="font-size:12.7px">The source code contain this:</span></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249)"><div><span style="font-size:12.7px"> static {</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkCommonJ<wbr>ava");</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkFilteri<wbr>ngJava");</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkIOJava"<wbr>);</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkImaging<wbr>Java");</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkGraphic<wbr>sJava");</span></div><div><span style="font-size:12.7px">    System.loadLibrary("vtkRenderi<wbr>ngJava");</span></div><div><span style="font-size:12.7px">  }</span></div></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="background-color:rgb(249,249,249)"><span style="font-size:12.7px"><br></span></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.7px;background-color:rgb(249,249,249)">I have no idea what is the solution for this problem.</span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.7px;background-color:rgb(249,249,249)"><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.7px;background-color:rgb(249,249,249)">Thank you for taking the time to read my letter.</span></font></div><span class="HOEnZb"><font color="#888888"><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.7px;background-color:rgb(249,249,249)"><br></span></font></div><div style="color:rgb(80,0,80);font-size:12.8px"><font color="#000000" face="arial, helvetica, sans-serif"><span style="font-size:12.7px;background-color:rgb(249,249,249)">Csaba Vörös</span></font></div></font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
<br></blockquote></div><br></div>