[vtkusers] VTK 6.2 Java Standalone Application

Setegn, Manny setegn.2 at buckeyemail.osu.edu
Sat Feb 13 09:31:44 EST 2016


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:


"C:\Program Files\VTK\bin"


This folder contained all of the dll files.  "C:\Program Files\VTK\lib" contains the jar file as well as the .lib files.


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

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).

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:

java -jar Test.jar

Then the errors I posted before occurred.  Thank you for your help so far

________________________________
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Sent: Friday, February 12, 2016 10:29 PM
To: Setegn, Manny
Cc: vincentrivola; vtkusers at vtk.org
Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application

Can you explain what you've done?
- setting of your env PATH?
- what command line did you ran?
- which dir contain what...

Just so we can understand what you are missing...

Seb

On Fri, Feb 12, 2016 at 4:21 PM, Setegn, Manny <setegn.2 at buckeyemail.osu.edu<mailto:setegn.2 at buckeyemail.osu.edu>> wrote:
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):

java.lang.UnsatisfiedLinkError: C:\Program Files\VTK\bin\vtkRenderingOpenGLJava.
dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
        at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160
)

It does this for the following libraries:

vtkAcceleratorsDaxJava not loaded
vtkAcceleratorsPistonJava not loaded
vtkChartsCoreJava not loaded
vtkDomainsChemistryJava not loaded
vtkDomainsChemistryOpenGL2Java not loaded
vtkFiltersParallelFlowPathsJava not loaded
vtkFiltersParallelGeometryJava not loaded
vtkFiltersParallelMPIJava not loaded
vtkFiltersParallelStatisticsJava not loaded
vtkFiltersReebGraphJava not loaded
vtkFiltersStatisticsGnuRJava not loaded
vtkGeovisCoreJava not loaded
vtkInfovisBoostGraphAlgorithmsJava not loaded
vtkInfovisParallelJava not loaded
vtkInteractionStyleJava not loaded
vtkInteractionWidgetsJava not loaded
vtkIOADIOSJava not loaded
vtkIOExportJava not loaded
vtkIOFFMPEGJava not loaded
vtkIOGDALJava not loaded
vtkIOGeoJSONJava not loaded
vtkIOMPIImageJava not loaded
vtkIOMPIParallelJava not loaded
vtkIOMySQLJava not loaded
vtkIOODBCJava not loaded
vtkIOParallelExodusJava not loaded
vtkIOParallelLSDynaJava not loaded
vtkIOParallelNetCDFJava not loaded
vtkIOPostgreSQLJava not loaded
vtkIOVPICJava not loaded
vtkIOXdmf2Java not loaded
vtkIOXdmf3Java not loaded
vtkParallelMPIJava not loaded
vtkRenderingAnnotationJava not loaded
vtkRenderingContext2DJava not loaded
vtkRenderingContextOpenGLJava not loaded
vtkRenderingContextOpenGL2Java not loaded
vtkRenderingCoreJava not loaded
vtkRenderingExternalJava not loaded
vtkRenderingFreeTypeJava not loaded
vtkRenderingFreeTypeOpenGLJava not loaded
vtkRenderingFreeTypeOpenGL2Java not loaded
vtkRenderingImageJava not loaded
vtkRenderingLabelJava not loaded
vtkRenderingLICJava not loaded
vtkRenderingLODJava not loaded
vtkRenderingMatplotlibJava not loaded
vtkRenderingOpenGLJava not loaded
vtkRenderingOpenGL2Java not loaded
vtkRenderingParallelJava not loaded
vtkRenderingParallelLICJava not loaded
vtkRenderingQtJava not loaded
vtkRenderingVolumeJava not loaded
vtkRenderingVolumeAMRJava not loaded
vtkRenderingVolumeOpenGLJava not loaded
vtkRenderingVolumeOpenGL2Java not loaded
vtkRenderingVolumeOpenGLNewJava not loaded
vtkTestingRenderingJava not loaded
vtkPythonInterpreterJava not loaded
vtkViewsContext2DJava not loaded
vtkViewsGeovisJava not loaded
vtkViewsInfovisJava not loaded
vtkWebCoreJava not loaded
vtkWebGLExporterJava not loaded

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.

________________________________________
From: vtkusers <vtkusers-bounces at vtk.org<mailto:vtkusers-bounces at vtk.org>> on behalf of vincentrivola <vincentrivola at hotmail.com<mailto:vincentrivola at hotmail.com>>
Sent: Monday, February 8, 2016 12:57 AM
To: vtkusers at vtk.org<mailto:vtkusers at vtk.org>
Subject: Re: [vtkusers] VTK 6.2 Java Standalone Application

If you are trying to use the jar you created on a different machine, indeed,
you should make sure that all the Visual Studio redistruables has been
installed on this machine.

If it's not working on your own machine (where you made the VTK
compilation), it is often a problem of finding the java dll, like jawt.dll
for instance.

In any case you can use dependency walker in order to find out which exact
dll is missing.

good luck



--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-2-Java-Standalone-Application-tp5736419p5736423.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com<http://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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com<http://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

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160213/eb80fe26/attachment.html>


More information about the vtkusers mailing list