Hi, I compressed a vtk java wrapper demo in to a jar file, in which those vtk libraries are used:<br>System.loadLibrary("vtkCommonJava");<br>System.loadLibrary("vtkFilteringJava");<br>System.loadLibrary("vtkIOJava");<br>
System.loadLibrary("vtkImagingJava");<br>System.loadLibrary("vtkGraphicsJava");<br>System.loadLibrary("vtkRenderingJava");<br><br>The strange result is when I double-click the xxx.jar file, it runs well; but when I use a command line and type "java -jar xxx.jar", I will encounter an UnsatisfiedLinkError when loading <span style="color: rgb(255, 0, 0);">vtkRenderingJava</span> except which the other lib files are correctly loaded.<br>
<br>here is my environment:<br>- Win32 XP<br>- vtk5.6.1<br>- jdk 1.6.0_22<br>- cmake 2.8.4<br>- visual studio express 2008<br><br>I also use Eclipse to run the demo directly, it also runs well. So I felt very strange. <br>
<br>I am wondering if there are some jvm arguments I missed when try to launch by "java -jar xxx.jar", or some other reasons, thanks in advance.<br><br>I am sure the vtk bin library is included in the "PATH" variant, for my java.library,path is as follows:<br>
<br>C:\sdk\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\sdk\Java\jdk1.6.0_22\jre\bin;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin/client;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin;<span style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>;C:\dev\tools\apache-ant-1.7.0\bin;C:\sdk\Java\jdk1.6.0_22\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\notes;c:\Program Files\XLView;C:\Utilities;C:\lotus\component;C:\Program Files\IBM\Personal Communications\;C:\Program Files\IBM\Trace Facility\;C:\lotus\compnent;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\ThinkPad\ConnectUtilities;C:\MySQL\MySQL Server 5.5\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files\CMake 2.8\bin;C:\sdk\python\Python27;C:\sdk\python\Python27\Scripts;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\SSH Communications Security\SSH Secure Shell<br>
<br>Sincerely,<br>Kevin Lin<br>2011-04-29<br>