View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000288VTK(No Category)public2003-10-17 14:262006-12-13 17:35
ReporterDavid MacKinnon 
Assigned ToMathieu Malaterre 
PriorityurgentSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000288: vtkRenderingJava.dll exception in Java SDK 1.4.1
DescriptionWhen running the following test code:

import vtk.*;
public class VTKtest {
  static {
    System.loadLibrary("vtkCommonJava");
    System.loadLibrary("vtkFilteringJava");
    System.loadLibrary("vtkIOJava");
    System.loadLibrary("vtkImagingJava");
    System.loadLibrary("vtkGraphicsJava");
    // Adding this line causes exception
    System.loadLibrary("vtkRenderingJava");
  }
  public static void main (String[] args) {
      System.out.println("Libraries loaded");
  }
}

The following exception is generated:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files\vtk4
2\bin\vtkRenderingJava.dll: Can't find dependent libraries
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:832)
        at VTKtest.<clinit>(VTKtest.java:13)

The exception was generated using Java SDK 1.4.1_05.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0000435)
Shyam Prakash R K (reporter)
2003-12-30 01:23

I don't think this is a bug. Make sure you have jawt.dll is in the system path which can be found at
<JAVA_INATLL_DIR>/jre/bin. Also, if you have built vtk yoursef, then it is possible that some of the libraries are linked dynamically. In that case you should have foloowing dll's in the path as well
MSVCIRTD.DLL
MSVCP60D.DLL
MSVCRTD.DLL
(I am assuming you mave built VTK using MSVisualStudio 6.0)

--Shyam
(0005968)
Mathieu Malaterre (developer)
2006-12-13 17:35

Not a bug, but a user error.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team