<div dir="ltr">Thanks Daniel for sharing. <div><br></div><div>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.</div><div>I'll see if I can get some time to work on that part.</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 15, 2015 at 8:55 AM, -Daniel- <span dir="ltr"><<a href="mailto:ich_daniel@habmalnefrage.de" target="_blank">ich_daniel@habmalnefrage.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">At first, sorry for this long message!<br>
<br>
By using vtkNativeLibrary (hint of Sebastien), I get following output:<br>
<span class=""><br>
java.lang.UnsatisfiedLinkError: no vtkRenderingContextOpenGLJava in<br>
java.library.path<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
<span class="">java.lang.UnsatisfiedLinkError: no vtkRenderingFreeTypeOpenGLJava in<br>
java.library.path<br>
</span><span class=""> at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
java.lang.UnsatisfiedLinkError: no vtkRenderingGL2PSJava in<br>
<span class="">java.library.path<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
java.lang.UnsatisfiedLinkError: no vtkRenderingLICJava in java.library.path<br>
<span class=""> at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
java.lang.UnsatisfiedLinkError: no vtkRenderingOpenGLJava in<br>
<span class="">java.library.path<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
java.lang.UnsatisfiedLinkError: no vtkRenderingVolumeOpenGLJava in<br>
<span class="">java.library.path<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
java.lang.UnsatisfiedLinkError: no vtkTestingRenderingJava in<br>
<span class="">java.library.path<br>
at java.lang.ClassLoader.loadLibrary(Unknown Source)<br>
at java.lang.Runtime.loadLibrary0(Unknown Source)<br>
</span> at java.lang.System.loadLibrary(Unknown Source)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:225)<br>
at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:160)<br>
at start.myProg.loadVTKLibrary(myProg.java:280)<br>
at start.myProg.main(myProg.java:82)<br>
vtkAcceleratorsDaxJava not loaded<br>
vtkAcceleratorsPistonJava not loaded<br>
vtkDomainsChemistryOpenGL2Java not loaded<br>
vtkFiltersParallelFlowPathsJava not loaded<br>
vtkFiltersParallelGeometryJava not loaded<br>
vtkChartsCoreJava is loaded!<br>
vtkCommonColorJava is loaded!<br>
vtkCommonComputationalGeometryJava is loaded!<br>
vtkCommonCoreJava is loaded!<br>
vtkCommonDataModelJava is loaded!<br>
vtkCommonExecutionModelJava is loaded!<br>
vtkFiltersParallelMPIJava not loaded<br>
vtkFiltersParallelStatisticsJava not loaded<br>
vtkFiltersReebGraphJava not loaded<br>
vtkCommonMathJava is loaded!<br>
vtkCommonMiscJava is loaded!<br>
vtkCommonSystemJava is loaded!<br>
vtkCommonTransformsJava is loaded!<br>
vtkDomainsChemistryJava is loaded!<br>
vtkFiltersAMRJava is loaded!<br>
vtkFiltersCoreJava is loaded!<br>
vtkFiltersExtractionJava is loaded!<br>
vtkFiltersFlowPathsJava is loaded!<br>
vtkFiltersGeneralJava is loaded!<br>
vtkFiltersGenericJava is loaded!<br>
vtkFiltersGeometryJava is loaded!<br>
vtkFiltersHybridJava is loaded!<br>
vtkFiltersHyperTreeJava is loaded!<br>
vtkFiltersImagingJava is loaded!<br>
vtkFiltersModelingJava is loaded!<br>
vtkFiltersParallelJava is loaded!<br>
vtkFiltersParallelImagingJava is loaded!<br>
vtkFiltersProgrammableJava is loaded!<br>
vtkFiltersSelectionJava is loaded!<br>
vtkFiltersSMPJava is loaded!<br>
vtkFiltersSourcesJava is loaded!<br>
vtkFiltersStatisticsJava is loaded!<br>
vtkFiltersStatisticsGnuRJava not loaded<br>
vtkFiltersTextureJava is loaded!<br>
vtkFiltersVerdictJava is loaded!<br>
vtkGeovisCoreJava is loaded!<br>
vtkImagingColorJava is loaded!<br>
vtkImagingCoreJava is loaded!<br>
vtkImagingFourierJava is loaded!<br>
vtkImagingGeneralJava is loaded!<br>
vtkImagingHybridJava is loaded!<br>
vtkImagingMathJava is loaded!<br>
vtkImagingMorphologicalJava is loaded!<br>
vtkImagingSourcesJava is loaded!<br>
vtkImagingStatisticsJava is loaded!<br>
vtkImagingStencilJava is loaded!<br>
vtkInfovisBoostGraphAlgorithmsJava not loaded<br>
vtkInfovisCoreJava is loaded!<br>
vtkInfovisLayoutJava is loaded!<br>
vtkInfovisParallelJava not loaded<br>
vtkInteractionImageJava is loaded!<br>
vtkInteractionStyleJava is loaded!<br>
vtkInteractionWidgetsJava is loaded!<br>
vtkIOADIOSJava not loaded<br>
vtkIOAMRJava is loaded!<br>
vtkIOCoreJava is loaded!<br>
vtkIOEnSightJava is loaded!<br>
vtkIOExodusJava is loaded!<br>
vtkIOExportJava is loaded!<br>
vtkIOFFMPEGJava not loaded<br>
vtkIOGDALJava not loaded<br>
vtkIOGeoJSONJava not loaded<br>
vtkIOGeometryJava is loaded!<br>
vtkIOImageJava is loaded!<br>
vtkIOImportJava is loaded!<br>
vtkIOInfovisJava is loaded!<br>
vtkIOLegacyJava is loaded!<br>
vtkIOLSDynaJava is loaded!<br>
vtkIOMINCJava is loaded!<br>
vtkIOMovieJava is loaded!<br>
vtkIOMPIImageJava not loaded<br>
vtkIOMPIParallelJava not loaded<br>
vtkIOMySQLJava not loaded<br>
vtkIONetCDFJava is loaded!<br>
vtkIOODBCJava not loaded<br>
vtkIOParallelJava is loaded!<br>
vtkIOParallelExodusJava not loaded<br>
vtkIOParallelLSDynaJava not loaded<br>
vtkIOParallelNetCDFJava not loaded<br>
vtkIOParallelXMLJava is loaded!<br>
vtkIOPLYJava is loaded!<br>
vtkIOPostgreSQLJava not loaded<br>
vtkIOSQLJava is loaded!<br>
vtkIOVideoJava is loaded!<br>
vtkIOVPICJava not loaded<br>
vtkIOXdmf2Java not loaded<br>
vtkIOXdmf3Java not loaded<br>
vtkIOXMLJava is loaded!<br>
vtkIOXMLParserJava is loaded!<br>
vtkParallelCoreJava is loaded!<br>
vtkParallelMPIJava not loaded<br>
vtkRenderingAnnotationJava is loaded!<br>
vtkRenderingContext2DJava is loaded!<br>
vtkRenderingContextOpenGLJava not loaded<br>
vtkRenderingContextOpenGL2Java not loaded<br>
vtkRenderingCoreJava is loaded!<br>
vtkRenderingExternalJava not loaded<br>
vtkRenderingFreeTypeJava is loaded!<br>
vtkRenderingFreeTypeOpenGLJava not loaded<br>
vtkRenderingFreeTypeOpenGL2Java not loaded<br>
vtkRenderingGL2PSJava not loaded<br>
vtkRenderingImageJava is loaded!<br>
vtkRenderingLabelJava is loaded!<br>
vtkRenderingLICJava not loaded<br>
vtkRenderingLODJava is 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 is 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 is loaded!<br>
vtkViewsCoreJava is loaded!<br>
vtkViewsGeovisJava not loaded<br>
vtkViewsInfovisJava is loaded!<br>
vtkWebCoreJava not loaded<br>
vtkWebGLExporterJava not loaded<br>
#<br>
# A fatal error has been detected by the Java Runtime Environment:<br>
#<br>
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff84ddf9750,<br>
pid=3592, tid=3684<br>
#<br>
# JRE version: Java(TM) SE Runtime Environment (8.0_40-b25) (build<br>
1.8.0_40-b25)<br>
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b25 mixed mode<br>
windows-amd64 compressed oops)<br>
# Problematic frame:<br>
# C [vtkCommonCore-6.2.dll+0xf9750]<br>
<br>
... and so on...<br>
<br>
Up to the crash 80 files loaded and 49 not loaded.<br>
<br>
<br>
My current version (without crash) load total of 193 dll-files:<br>
<br>
//***************<br>
dir == (../directory/to/the/VTK/DLLs)<br>
File[] files = dir.listFiles();<br>
if (files != null) {<br>
for (int i = 0; i < files.length; i++) {<br>
// only the lib-name needed, without file extension<br>
System.loadLibrary(files[i].getName().substring(0,<br>
files[i].getName().length()-4));<br>
if (files[i].isDirectory()) {<br>
listDir(files[i]);<br>
}<br>
}<br>
}<br>
//***************<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730826.html" target="_blank">http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789p5730826.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" 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" 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" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>