[vtkusers] Regarding vrkRenderingJava.dll

kingvsk at aol.com kingvsk at aol.com
Sat Oct 13 04:39:03 EDT 2012


Hi,
     The error "vtkRenderingJava.dll: The specified procedure could not 
be found" shows that you are trying to access some method which is not 
found in vtkRenderingJava.dll.

So I think the problem should be in VTK building process. But express 
edition is not a problem, because me too used it without any problem.

Try to rebuild the VTK and check any error occurs while compilation.

--
Sathish


On Saturday 13 October 2012 01:14 PM, Bhargav patel wrote:
> Hi Sathish,
> After setting path variable in to environment variable I got the same 
> error
> So here is the full error
> java.lang.UnsatisfiedLinkError: 
> D:\vtk\vtkbin\bin\Release\vtkRenderingJava.dll: The specified 
> procedure could not be found
>         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>         at java.lang.System.loadLibrary(System.java:1028)
>         at ImageTest1.<clinit>(ImageTest1.java:42)
> Could not find the main class: ImageTest1.  Program will exit.
> Exception in thread "main" Java Result: 1
> BUILD SUCCESSFUL (total time: 0 seconds)
>
> and here is the snapshots of my code which generate error file name is 
> ImageTest1.java
>
> I used the version called vtk-5.10.0 and i used cmake 2.8.9 and 
> microsoft visual C++ 2010 express
>
> do u think that microsoft visual C++ 2010 express is cause of error 
> because mostly people used visual studio
> I build everything under release mode
>
> import vtk.*;
> import vtk.vtkDICOMImageReader;
>
> /**
>  *
>  * @author bhargav
>  */
> public class ImageTest1  {
>
>      private vtkDICOMImageReader reader;
>       double[] dataExtent;
>      public ImageTest1(){
>
>      }
>
>     public ImageTest1(vtkDICOMImageReader reader) {
>         this.reader = reader;
>     }
>
>
>      static {
>         System.loadLibrary("vtkCommonJava");
>         System.loadLibrary("vtkFilteringJava");
>         System.loadLibrary("vtkIOJava");
>         System.loadLibrary("vtkImagingJava");
>         System.loadLibrary("vtkGraphicsJava");
>         System.loadLibrary("vtkIOJava");
>         System.loadLibrary("vtkRenderingJava");
>  //       System.loadLibrary("vtkWidgetsJava");
>
>     }
>
>     public static void main(String args[]){
>         System.out.println("hello");
>         ImageTest1 it = new ImageTest1();
>         it.readDicomDir("path");
>
>     }
>
>       public  void readDicomDir(String path) {
>         reader = new vtkDICOMImageReader();
>         //reader.SetDirectoryName(p/th);
> reader.SetFileName("F:/diacom/DISCIMG/IMAGES/BRFLAIR");
>
>
>         reader.SetDataScalarTypeToUnsignedShort();
>         reader.UpdateWholeExtent();
>         reader.Update();
>        int[] extent = reader.GetOutput().GetWholeExtent();
> System.out.println("Dimention "+extent[1]+" "+extent[3]+" "+extent[5]);
> }
>
> Thanks for the answer
> ------------------------------------------------------------------------
> *From:* "kingvsk at aol.com" <kingvsk at aol.com>
> *To:* Bhargav patel <bhargav57 at yahoo.com>
> *Sent:* Saturday, 13 October 2012 11:59 AM
> *Subject:* Re: [vtkusers] Regarding vrkRenderingJava.dll
>
> Hi
>
> If Setting  -Djava.lib.path=D:\vtk\vtkbin\bin\Release didn't solve 
> your problem then you need to add vtk D:\vtk\vtkbin\bin\Release to 
> %PATH% environment variable and remove 
> -Djava.lib.path=D:\vtk\vtkbin\bin\Release from Netbeans VM Option.
>
> If you get the same problem again (after adding your path to %PATH% 
> env. variable) tell me what version of vtk you are using and post full 
> error message.
>
> --
> Sathish
>
> On Saturday 13 October 2012 11:38 AM, Bhargav patel wrote:
>> Hello
>> I have a problem related VtkRenderingjava.dll
>> I already add my folder in to netbeans VM option lik
>> -Djava.lib.path=D:\vtk\vtkbin\bin\Release
>>
>> But still it gives unsatisfied llink error
>> plz help me in this problem
>> thanks
>>
>>
>> _______________________________________________
>> Powered bywww.kitware.com  <http://www.kitware.com/>
>>
>> Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121013/4be4ff69/attachment.htm>


More information about the vtkusers mailing list