[vtkusers] System.loadLibray() in 6.2

Sebastien Jourdain sebastien.jourdain at kitware.com
Mon Mar 16 10:47:04 EDT 2015


Thanks Daniel for sharing.

I guess if we revisit that part to allow the native libraries to be loaded
from a single jar, that could solve the problem all together.
I'll see if I can get some time to work on that part.

Seb

On Sun, Mar 15, 2015 at 8:55 AM, -Daniel- <ich_daniel at habmalnefrage.de>
wrote:

> At first, sorry for this long message!
>
> By using vtkNativeLibrary (hint of Sebastien), I get following output:
>
> java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkRenderingGL2PSJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkRenderingLICJava in java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkRenderingOpenGLJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkRenderingVolumeOpenGLJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> java.lang.UnsatisfiedLinkError: no vtkTestingRenderingJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(Unknown Source)
>         at java.lang.Runtime.loadLibrary0(Unknown Source)
>         at java.lang.System.loadLibrary(Unknown Source)
>         at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)
>         at
> vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)
>         at start.myProg.loadVTKLibrary(myProg.java:280)
>         at start.myProg.main(myProg.java:82)
> vtkAcceleratorsDaxJava not loaded
> vtkAcceleratorsPistonJava not loaded
> vtkDomainsChemistryOpenGL2Java not loaded
> vtkFiltersParallelFlowPathsJava not loaded
> vtkFiltersParallelGeometryJava not loaded
>   vtkChartsCoreJava is loaded!
>   vtkCommonColorJava is loaded!
>   vtkCommonComputationalGeometryJava is loaded!
>   vtkCommonCoreJava is loaded!
>   vtkCommonDataModelJava is loaded!
>   vtkCommonExecutionModelJava is loaded!
> vtkFiltersParallelMPIJava not loaded
> vtkFiltersParallelStatisticsJava not loaded
> vtkFiltersReebGraphJava not loaded
>   vtkCommonMathJava is loaded!
>   vtkCommonMiscJava is loaded!
>   vtkCommonSystemJava is loaded!
>   vtkCommonTransformsJava is loaded!
>   vtkDomainsChemistryJava is loaded!
>   vtkFiltersAMRJava is loaded!
>   vtkFiltersCoreJava is loaded!
>   vtkFiltersExtractionJava is loaded!
>   vtkFiltersFlowPathsJava is loaded!
>   vtkFiltersGeneralJava is loaded!
>   vtkFiltersGenericJava is loaded!
>   vtkFiltersGeometryJava is loaded!
>   vtkFiltersHybridJava is loaded!
>   vtkFiltersHyperTreeJava is loaded!
>   vtkFiltersImagingJava is loaded!
>   vtkFiltersModelingJava is loaded!
>   vtkFiltersParallelJava is loaded!
>   vtkFiltersParallelImagingJava is loaded!
>   vtkFiltersProgrammableJava is loaded!
>   vtkFiltersSelectionJava is loaded!
>   vtkFiltersSMPJava is loaded!
>   vtkFiltersSourcesJava is loaded!
>   vtkFiltersStatisticsJava is loaded!
> vtkFiltersStatisticsGnuRJava not loaded
>   vtkFiltersTextureJava is loaded!
>   vtkFiltersVerdictJava is loaded!
>   vtkGeovisCoreJava is loaded!
>   vtkImagingColorJava is loaded!
>   vtkImagingCoreJava is loaded!
>   vtkImagingFourierJava is loaded!
>   vtkImagingGeneralJava is loaded!
>   vtkImagingHybridJava is loaded!
>   vtkImagingMathJava is loaded!
>   vtkImagingMorphologicalJava is loaded!
>   vtkImagingSourcesJava is loaded!
>   vtkImagingStatisticsJava is loaded!
>   vtkImagingStencilJava is loaded!
> vtkInfovisBoostGraphAlgorithmsJava not loaded
>   vtkInfovisCoreJava is loaded!
>   vtkInfovisLayoutJava is loaded!
> vtkInfovisParallelJava not loaded
>   vtkInteractionImageJava is loaded!
>   vtkInteractionStyleJava is loaded!
>   vtkInteractionWidgetsJava is loaded!
> vtkIOADIOSJava not loaded
>   vtkIOAMRJava is loaded!
>   vtkIOCoreJava is loaded!
>   vtkIOEnSightJava is loaded!
>   vtkIOExodusJava is loaded!
>   vtkIOExportJava is loaded!
> vtkIOFFMPEGJava not loaded
> vtkIOGDALJava not loaded
> vtkIOGeoJSONJava not loaded
>   vtkIOGeometryJava is loaded!
>   vtkIOImageJava is loaded!
>   vtkIOImportJava is loaded!
>   vtkIOInfovisJava is loaded!
>   vtkIOLegacyJava is loaded!
>   vtkIOLSDynaJava is loaded!
>   vtkIOMINCJava is loaded!
>   vtkIOMovieJava is loaded!
> vtkIOMPIImageJava not loaded
> vtkIOMPIParallelJava not loaded
> vtkIOMySQLJava not loaded
>   vtkIONetCDFJava is loaded!
> vtkIOODBCJava not loaded
>   vtkIOParallelJava is loaded!
> vtkIOParallelExodusJava not loaded
> vtkIOParallelLSDynaJava not loaded
> vtkIOParallelNetCDFJava not loaded
>   vtkIOParallelXMLJava is loaded!
>   vtkIOPLYJava is loaded!
> vtkIOPostgreSQLJava not loaded
>   vtkIOSQLJava is loaded!
>   vtkIOVideoJava is loaded!
> vtkIOVPICJava not loaded
> vtkIOXdmf2Java not loaded
> vtkIOXdmf3Java not loaded
>   vtkIOXMLJava is loaded!
>   vtkIOXMLParserJava is loaded!
>   vtkParallelCoreJava is loaded!
> vtkParallelMPIJava not loaded
>   vtkRenderingAnnotationJava is loaded!
>   vtkRenderingContext2DJava is loaded!
> vtkRenderingContextOpenGLJava not loaded
> vtkRenderingContextOpenGL2Java not loaded
>   vtkRenderingCoreJava is loaded!
> vtkRenderingExternalJava not loaded
>   vtkRenderingFreeTypeJava is loaded!
> vtkRenderingFreeTypeOpenGLJava not loaded
> vtkRenderingFreeTypeOpenGL2Java not loaded
> vtkRenderingGL2PSJava not loaded
>   vtkRenderingImageJava is loaded!
>   vtkRenderingLabelJava is loaded!
> vtkRenderingLICJava not loaded
>   vtkRenderingLODJava is loaded!
> vtkRenderingMatplotlibJava not loaded
> vtkRenderingOpenGLJava not loaded
> vtkRenderingOpenGL2Java not loaded
> vtkRenderingParallelJava not loaded
> vtkRenderingParallelLICJava not loaded
> vtkRenderingQtJava not loaded
>   vtkRenderingVolumeJava is loaded!
> vtkRenderingVolumeAMRJava not loaded
> vtkRenderingVolumeOpenGLJava not loaded
> vtkRenderingVolumeOpenGL2Java not loaded
> vtkRenderingVolumeOpenGLNewJava not loaded
> vtkTestingRenderingJava not loaded
> vtkPythonInterpreterJava not loaded
>   vtkViewsContext2DJava is loaded!
>   vtkViewsCoreJava is loaded!
> vtkViewsGeovisJava not loaded
>   vtkViewsInfovisJava is loaded!
> vtkWebCoreJava not loaded
> vtkWebGLExporterJava not loaded
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff84ddf9750,
> pid=3592, tid=3684
> #
> # JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build
> 1.8.0_40-b25)
> # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode
> windows-amd64 compressed oops)
> # Problematic frame:
> # C  [vtkCommonCore-6.2.dll+0xf9750]
>
> ... and so on...
>
> Up to the crash 80 files loaded and 49 not loaded.
>
>
> My current version (without crash) load total of 193 dll-files:
>
> //***************
> dir == (../directory/to/the/VTK/DLLs)
> File[] files = dir.listFiles();
> if (files != null) {
>    for (int i = 0; i < files.length; i++) {
>         // only the lib-name needed, without file extension
>         System.loadLibrary(files[i].getName().substring(0,
> files[i].getName().length()-4));
>         if (files[i].isDirectory()) {
>                 listDir(files[i]);
>         }
>    }
> }
> //***************
>
>
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730826.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by 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/20150316/dbc9f4f5/attachment.html>


More information about the vtkusers mailing list