[vtkusers] 3.2beta Java build

Ken Martin ken.martin at kitware.com
Wed Dec 20 15:24:47 EST 2000


Hello Randy,

Java mangles native methods and any _ are converted to _1 as part of the 
mangling. Having said that, I'm not sure why you are getting the load error.

- Ken


>Exception occurred during event dispatching:
>java.lang.UnsatisfiedLinkError: VisibleActorCount_24
>
>
>Poking around, I find:
>vtk3.2/java/vtk/vtkRenderer.java:
>  ...
>   private native int VisibleActorCount_24();
>   public int VisibleActorCount()
>     { return VisibleActorCount_24(); }
>
>but in /graphics/java/vtkRendererJava.cxx:
>extern "C" JNIEXPORT jint  JNICALL
>Java_vtk_vtkRenderer_VisibleActorCount_124(JNIEnv *env, jobject obj)
>
>note the "124" instead of "24, due to:





More information about the vtkusers mailing list