<div dir="ltr">Try to load the libraries that you need to load instead of all of them. It seems that you didn't build everything (which is probably fine).<div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 21, 2015 at 2:58 PM, CSharpdotcom . <span dir="ltr"><<a href="mailto:csharpdotcom@gmail.com" target="_blank">csharpdotcom@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I already had PATH=C:\VTK\bin\Release, and added ;%PATH% at the end,<br>
but it still doesn't work, and get the following output:<br>
<span class=""><br>
java.lang.UnsatisfiedLinkError:<br>
C:\VTK\bin\Release\vtkChartsCoreJava.dll: Can't find dependent<br>
libraries<br>
</span>    at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)    at<br>
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)<br>
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)<br>
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)<br>
    at java.lang.System.loadLibrary(System.java:1119)<br>
    at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:214)<br>
at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:214)<br>
    at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:149)<br>
    at vtk.sample.rendering.AwtConeRendering.<clinit>(AwtConeRendering.java:19)<br>
java.lang.UnsatisfiedLinkError:<br>
C:\VTK\bin\Release\vtkDomainsChemistryJava.dll: Can't find dependent<br>
libraries<br>
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)<br>
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937)<br>
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1855)<br>
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)<br>
    at java.lang.System.loadLibrary(System.java:1119)<br>
    at vtk.vtkNativeLibrary.LoadLibrary(vtkNativeLibrary.java:214)<br>
    at vtk.vtkNativeLibrary.LoadAllNativeLibraries(vtkNativeLibrary.java:149)<br>
    at vtk.sample.rendering.AwtConeRendering.<clinit>(AwtConeRendering.java:19)<br>
...................<br>
<br>
These error messages continue, then a list of files not loaded are<br>
printed out, as given in the source code.<br>
<br>
Based on these error messages it's picking up the dll files in the<br>
\Release folder, but it's unable to find other files that these dll<br>
files depend on.<br>
<br>
Do you want a full listing of the Java source file?  The<br>
AwtConeRendering class starts off with:<br>
<br>
  static {<br>
    System.out.println(System.getProperty("java.library.path"));<br>
    if (!vtkNativeLibrary.LoadAllNativeLibraries()) {<br>
      for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {<br>
        if (!lib.IsLoaded()) {<br>
          System.out.println(lib.GetLibraryName() + " not loaded");<br>
        }<br>
      }<br>
    }<br>
    vtkNativeLibrary.DisableOutputWindow(null);<br>
  }<br>
<br>
which is followed by the main() method, which contains statements such as:<br>
<br>
vtkConeSource cone = new vtkConeSource();<br>
<br>
csharp<br>
<div class="HOEnZb"><div class="h5"><br>
On Sat, Mar 21, 2015 at 10:26 AM, Sebastien Jourdain<br>
<<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>> wrote:<br>
> Te java.library.path is not enough and you need to add into your environment<br>
> PATH the following directory, C:\VTK\bin\Release.<br>
><br>
> set PATH=C:\VTK\bin\Release;%PATH%<br>
><br>
> Seb<br>
><br>
> On Sat, Mar 21, 2015 at 10:33 AM, CSharpdotcom . <<a href="mailto:csharpdotcom@gmail.com">csharpdotcom@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I'm new to VTK and this is my first posting here or on any other forum<br>
>> related to VTK.<br>
>><br>
>> I've been trying for about a week to get VTK installed and running on<br>
>> my computer.  The project I'm working on is to use Java with VTK to<br>
>> represent 3D graphics, which I hope to use with NetBeans 8.0.2.  I<br>
>> also have Visual Studio Pro 2010.<br>
>><br>
>> After failed attempts in installing VTK  6.2.0 and the latest version<br>
>> of CMake, from the link<br>
>> <a href="http://www5.cs.fau.de/en/conrad/tutorials/itk-and-vtk-wrapping/wrap-vtk" target="_blank">http://www5.cs.fau.de/en/conrad/tutorials/itk-and-vtk-wrapping/wrap-vtk</a><br>
>> I downloaded and unzipped VTK 6.1.0 and CMake 3.0.0, then installed<br>
>> them.<br>
>><br>
>> I then ran CMake according to the instructions on that link and<br>
>> installed the generated code in the folder C:\VTK.  I then clicked on<br>
>> the file VTK.sin in that folder, which opened up Visual Studio and<br>
>> started compiling the code with a large number of modules in the<br>
>> project.  This took about an hour, and on completion, generated the<br>
>> line at the end:<br>
>><br>
>> Build: 387 succeeded, 1 failed, 0 up-to-date, 0 skipped<br>
>><br>
>> I saved this in a file, which is very long, and after some effort<br>
>> found the error message:<br>
>><br>
>> 112>C:\VTK\bin\Release\vtkRenderingCoreJava.dll : fatal error LNK1120:<br>
>> 1 unresolved externals<br>
>><br>
>> In the mean time I attempted to recompile the project, which was much<br>
>> quicker, and got the same message.  In  recompiled I checked the<br>
>> "INSTALL" option, which had not previously been checked, although I<br>
>> don't know if that is significant.<br>
>><br>
>> Located in the folder \VTK\java\sample\rendering is the source file<br>
>> AwTConeRendering.java, which apparently has not been compiled.  I<br>
>> created a NetBeans project and copied that file into it, then linked<br>
>> vtk.jar in the folder \VTK\bin to the project, and all imports were<br>
>> satisfied.  In setting the Windows path to point to the dll files in<br>
>> \VTK\bin\Release, the application appears to pick up the dll files<br>
>> correctly, however, I get the following error message:<br>
>><br>
>> java.lang.UnsatisfiedLinkError:<br>
>> C:\VTK\bin\Release\vtkChartsCoreJava.dll: Can't find dependent<br>
>> libraries<br>
>><br>
>> repeated for many dll files.  Incidentally, as Visual Studio dlls are<br>
>> all 32 bits, as far as I know, I set up NetBeans to use a 32 bit JVM.<br>
>> This had previously been tested successfully with a test dll I created<br>
>> with Visual Studio and could execute with NetBeans.<br>
>><br>
>> This problem is presumably related to the first error mentioned above,<br>
>> and would be most grateful in getting this issue resolved.  As I said,<br>
>> I'm new to VTK, and in fact only in the last couple of weeks have<br>
>> tried for the first time to call a dll file from a Java application on<br>
>> a Windows computer.<br>
>><br>
>> In the Java code I added the statement:<br>
>><br>
>> System.out.println(System.getProperty("java.library.path"));<br>
>><br>
>> to check that the path was correct, which is the case.<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<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://public.kitware.com/mailman/listinfo/vtk-developers" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
>><br>
><br>
</div></div></blockquote></div><br></div>