<div dir="ltr">Hum, <div><br></div><div>I don't see what the problem is here... </div><div><br></div><div>Sorry,</div><div><br></div><div>Seb</div><div><br></div><div>PS: When you build VTK, can you enable all the JAVA install flag, in particularly the one that do some library renaming and generate a native JAR. (You will have to unzip it to get things working, but it should be closer to what Java is expecting.)</div><div>But I really don't have much understanding of your issue here.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 13, 2016 at 7:31 AM, Setegn, Manny <span dir="ltr"><<a href="mailto:setegn.2@buckeyemail.osu.edu" target="_blank">setegn.2@buckeyemail.osu.edu</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">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>So to re-clarify, I've built the release version of VTK 6.2 using Microsoft Visual Studio 2013. After building this, I built the INSTALL Project, and it added VTK to my program files. Then from here I appended my System Environment Path to include the
following:</p><span class="">
<p><br>
</p>
<p>"C:\Program Files\VTK\bin"</p>
<p><br>
</p>
</span><p>This folder contained all of the dll files. "C:\Program Files\VTK\lib" contains the jar file as well as the .lib files.</p>
<p><br>
</p>
<p>Once doing this, I tested to see if VTK would still work in Eclipse, and it did. So I proceeded to export my project as a Runnable JAR, and then packaged the necessary jar's in a separate folder (the one that </p>
will contain vtk.jar). So now vtk.jar is in two locations, but it shouldn't point to this until I add it to my System Path, I just want to use this folder later when I try sending this to a computer without VTK).
<div><br>
</div>
<div>Once the jar was created, I opened Command Prompt, went to the folder with my runnable jar I had just created and ran the following command prompt line:</div>
<div><br>
</div>
<div>java -jar Test.jar</div>
<div><br>
</div>
<div>Then the errors I posted before occurred. Thank you for your help so far</div>
<div><br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>><br>
<b>Sent:</b> Friday, February 12, 2016 10:29 PM<br>
<b>To:</b> Setegn, Manny<br>
<b>Cc:</b> vincentrivola; <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><div><div class="h5"><br>
<b>Subject:</b> Re: [vtkusers] VTK 6.2 Java Standalone Application</div></div></font>
<div> </div>
</div><div><div class="h5">
<div>
<div dir="ltr">Can you explain what you've done?
<div>- setting of your env PATH?</div>
<div>- what command line did you ran?</div>
<div>- which dir contain what...</div>
<div><br>
</div>
<div>Just so we can understand what you are missing...</div>
<div><br>
</div>
<div>Seb</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 12, 2016 at 4:21 PM, Setegn, Manny <span dir="ltr">
<<a href="mailto:setegn.2@buckeyemail.osu.edu" target="_blank">setegn.2@buckeyemail.osu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It is an unsatisfied link error where it cannot find all of the vtk dependent libraries. The exact error is as follows (over all VTK libraries, but this is just one example):<br>
<br>
java.lang.UnsatisfiedLinkError: C:\Program Files\VTK\bin\vtkRenderingOpenGLJava.<br>
dll: Can't find dependent libraries<br>
at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)<br>
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)<br>
at java.lang.Runtime.loadLibrary0(Runtime.java:870)<br>
at java.lang.System.loadLibrary(System.java:1122)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160<br>
)<br>
<br>
It does this for the following libraries:<br>
<br>
vtkAcceleratorsDaxJava not loaded<br>
vtkAcceleratorsPistonJava not loaded<br>
vtkChartsCoreJava not loaded<br>
vtkDomainsChemistryJava not loaded<br>
vtkDomainsChemistryOpenGL2Java not loaded<br>
vtkFiltersParallelFlowPathsJava not loaded<br>
vtkFiltersParallelGeometryJava not loaded<br>
vtkFiltersParallelMPIJava not loaded<br>
vtkFiltersParallelStatisticsJava not loaded<br>
vtkFiltersReebGraphJava not loaded<br>
vtkFiltersStatisticsGnuRJava not loaded<br>
vtkGeovisCoreJava not loaded<br>
vtkInfovisBoostGraphAlgorithmsJava not loaded<br>
vtkInfovisParallelJava not loaded<br>
vtkInteractionStyleJava not loaded<br>
vtkInteractionWidgetsJava not loaded<br>
vtkIOADIOSJava not loaded<br>
vtkIOExportJava not loaded<br>
vtkIOFFMPEGJava not loaded<br>
vtkIOGDALJava not loaded<br>
vtkIOGeoJSONJava not loaded<br>
vtkIOMPIImageJava not loaded<br>
vtkIOMPIParallelJava not loaded<br>
vtkIOMySQLJava not loaded<br>
vtkIOODBCJava not loaded<br>
vtkIOParallelExodusJava not loaded<br>
vtkIOParallelLSDynaJava not loaded<br>
vtkIOParallelNetCDFJava not loaded<br>
vtkIOPostgreSQLJava not loaded<br>
vtkIOVPICJava not loaded<br>
vtkIOXdmf2Java not loaded<br>
vtkIOXdmf3Java not loaded<br>
vtkParallelMPIJava not loaded<br>
vtkRenderingAnnotationJava not loaded<br>
vtkRenderingContext2DJava not loaded<br>
vtkRenderingContextOpenGLJava not loaded<br>
vtkRenderingContextOpenGL2Java not loaded<br>
vtkRenderingCoreJava not loaded<br>
vtkRenderingExternalJava not loaded<br>
vtkRenderingFreeTypeJava not loaded<br>
vtkRenderingFreeTypeOpenGLJava not loaded<br>
vtkRenderingFreeTypeOpenGL2Java not loaded<br>
vtkRenderingImageJava not loaded<br>
vtkRenderingLabelJava not loaded<br>
vtkRenderingLICJava not loaded<br>
vtkRenderingLODJava not loaded<br>
vtkRenderingMatplotlibJava not loaded<br>
vtkRenderingOpenGLJava not loaded<br>
vtkRenderingOpenGL2Java not loaded<br>
vtkRenderingParallelJava not loaded<br>
vtkRenderingParallelLICJava not loaded<br>
vtkRenderingQtJava not loaded<br>
vtkRenderingVolumeJava not loaded<br>
vtkRenderingVolumeAMRJava not loaded<br>
vtkRenderingVolumeOpenGLJava not loaded<br>
vtkRenderingVolumeOpenGL2Java not loaded<br>
vtkRenderingVolumeOpenGLNewJava not loaded<br>
vtkTestingRenderingJava not loaded<br>
vtkPythonInterpreterJava not loaded<br>
vtkViewsContext2DJava not loaded<br>
vtkViewsGeovisJava not loaded<br>
vtkViewsInfovisJava not loaded<br>
vtkWebCoreJava not loaded<br>
vtkWebGLExporterJava not loaded<br>
<br>
It is finding the folder with the dll, yet it is still not loading the dll's correctly. I have moved the vtk jar out of the jar I am trying to run and placed it, and the other jars, in a separate folder.<br>
<br>
________________________________________<br>
From: vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> on behalf of vincentrivola <<a href="mailto:vincentrivola@hotmail.com" target="_blank">vincentrivola@hotmail.com</a>><br>
Sent: Monday, February 8, 2016 12:57 AM<br>
To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application<br>
<div>
<div><br>
If you are trying to use the jar you created on a different machine, indeed,<br>
you should make sure that all the Visual Studio redistruables has been<br>
installed on this machine.<br>
<br>
If it's not working on your own machine (where you made the VTK<br>
compilation), it is often a problem of finding the java dll, like jawt.dll<br>
for instance.<br>
<br>
In any case you can use dependency walker in order to find out which exact<br>
dll is missing.<br>
<br>
good luck<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.html" rel="noreferrer" target="_blank">
http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<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/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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
_______________________________________________<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/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" rel="noreferrer" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</div>
</blockquote></div><br></div>