<div dir="ltr">The issue (I believe) is that you are not using the EDT to do your interaction with VTK.<div><br></div><div>Specially for the part below:</div><div><br></div><div><div>    //</div><div>    // now we loop over 360 degreeees and render the cone each time</div><div>    //</div><div>    int i;</div><div>    for (i = 0; i < 360; ++i)</div><div>      {</div><div>      // render the image</div><div>      renWin.Render();</div><div>      // rotate the active camera by one degree</div><div>      ren1.GetActiveCamera().Azimuth( 1 );</div><div>      }</div><div>    }</div></div><div><br></div><div>Moreover, on Mac, you can not really use the standard render window with Java. You should build VTK with JOGL and use the JOGL rendering component like in the example here: <a href="https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/rendering/JoglConeRendering.java">https://github.com/Kitware/VTK/blob/master/Wrapping/Java/vtk/sample/rendering/JoglConeRendering.java</a></div><div><br></div><div>For JOGL, you may want to read that first:</div><div><a href="https://github.com/Kitware/VTK/blob/master/Wrapping/Java/README.txt">https://github.com/Kitware/VTK/blob/master/Wrapping/Java/README.txt</a><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 11, 2017 at 4:25 AM, 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">Hi Sebastian!<div><br></div><div>I tried Load AllNativeLibraries() function and I got some exception that not found the .dylib libraries. I rewrote the libraries path to my build folder and it seems to me the code is correctly run. But the problem is I don't see anything because the window is close very fast. I uploaded the source code to Google Drive that you can see. </div><div><br></div><div><a href="https://drive.google.com/file/d/0BxKX9JI3_72IdHlpWkNZbHhqcW8/view?usp=sharing" target="_blank">https://drive.google.com/file/<wbr>d/0BxKX9JI3_<wbr>72IdHlpWkNZbHhqcW8/view?usp=<wbr>sharing</a></div><div><br></div><div>Thank you</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Csaba</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-04-09 2:01 GMT+02:00 Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.<wbr>com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://github.com/Kitwa<wbr>re/VTK/blob/master/Wrapping/<wbr>Java/vtk/sample/Demo.java#L51-<wbr>L61</a></div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_1225277813900466637h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_1225277813900466637h5"><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="m_1225277813900466637m_-7198234483203190610HOEnZb"><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></div></div>______________________________<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/opensou<wbr>rce/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/mail<wbr>man/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>