<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<span> The error "vtkRenderingJava.dll: The specified procedure
could not be found</span>" shows that you are trying to access
some method which is not found in <span>vtkRenderingJava.dll</span>.<br>
<br>
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.<br>
<br>
Try to rebuild the VTK and check any error occurs while
compilation.<br>
<br>
--<br>
Sathish<br>
<br>
<br>
On Saturday 13 October 2012 01:14 PM, Bhargav patel wrote:<br>
</div>
<blockquote
cite="mid:1350114260.13107.YahooMailNeo@web140003.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div><span>Hi Sathish,</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>After setting path
variable in to environment variable I got the same error</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>So here is the full
error</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>java.lang.UnsatisfiedLinkError:
D:\vtk\vtkbin\bin\Release\vtkRenderingJava.dll: The
specified procedure could not be found<br>
at java.lang.ClassLoader$NativeLibrary.load(Native
Method)<br>
at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)<br>
at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1728)<br>
at java.lang.Runtime.loadLibrary0(Runtime.java:823)<br>
at java.lang.System.loadLibrary(System.java:1028)<br>
at ImageTest1.<clinit>(ImageTest1.java:42)<br>
Could not find the main class: ImageTest1. Program will
exit.<br>
Exception in thread "main" Java Result: 1<br>
BUILD SUCCESSFUL (total time: 0 seconds)</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>and here is the
snapshots of my code which generate error file name is
ImageTest1.java</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>I used the version
called vtk-5.10.0 and i used cmake 2.8.9 and microsoft
visual C++ 2010 express</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>do u think that </span><span>microsoft
visual C++ 2010 express is cause of error because mostly
people used visual studio <br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>I build everything
under release mode<br>
</span><span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><span>import vtk.*;<br>
import vtk.vtkDICOMImageReader;<br>
<br>
/**<br>
*<br>
* @author bhargav<br>
*/<br>
public class ImageTest1 {<br>
<br>
private vtkDICOMImageReader reader;<br>
double[] dataExtent;<br>
public ImageTest1(){<br>
<br>
}<br>
<br>
public ImageTest1(vtkDICOMImageReader reader) {<br>
this.reader = reader;<br>
}<br>
<br>
<br>
static {<br>
System.loadLibrary("vtkCommonJava");<br>
System.loadLibrary("vtkFilteringJava");<br>
System.loadLibrary("vtkIOJava");<br>
System.loadLibrary("vtkImagingJava");<br>
System.loadLibrary("vtkGraphicsJava");<br>
System.loadLibrary("vtkIOJava");<br>
System.loadLibrary("vtkRenderingJava");<br>
// System.loadLibrary("vtkWidgetsJava");<br>
<br>
}<br>
<br>
public static void main(String args[]){<br>
System.out.println("hello");<br>
ImageTest1 it = new ImageTest1();<br>
it.readDicomDir("path");<br>
<br>
}<br>
<br>
public void readDicomDir(String path) {<br>
reader = new vtkDICOMImageReader();<br>
//reader.SetDirectoryName(p/th);<br>
reader.SetFileName("F:/diacom/DISCIMG/IMAGES/BRFLAIR");<br>
<br>
<br>
reader.SetDataScalarTypeToUnsignedShort();<br>
reader.UpdateWholeExtent();<br>
reader.Update();<br>
</span></div>
<div> int[] extent = reader.GetOutput().GetWholeExtent();</div>
<div>System.out.println("Dimention "+extent[1]+" "+extent[3]+"
"+extent[5]);<br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">}</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
times new roman,new york,times,serif; background-color:
transparent; font-style: normal;">Thanks for the answer<br>
</div>
<div style="font-family: times new roman, new york, times,
serif; font-size: 12pt;">
<div style="font-family: times new roman, new york, times,
serif; font-size: 12pt;">
<div dir="ltr"> <font face="Arial" size="2">
<hr size="1"> <b><span style="font-weight:bold;">From:</span></b>
<a class="moz-txt-link-rfc2396E" href="mailto:kingvsk@aol.com">"kingvsk@aol.com"</a> <a class="moz-txt-link-rfc2396E" href="mailto:kingvsk@aol.com"><kingvsk@aol.com></a><br>
<b><span style="font-weight: bold;">To:</span></b>
Bhargav patel <a class="moz-txt-link-rfc2396E" href="mailto:bhargav57@yahoo.com"><bhargav57@yahoo.com></a> <br>
<b><span style="font-weight: bold;">Sent:</span></b>
Saturday, 13 October 2012 11:59 AM<br>
<b><span style="font-weight: bold;">Subject:</span></b>
Re: [vtkusers] Regarding vrkRenderingJava.dll<br>
</font> </div>
<br>
<div id="yiv885752727">
<div>
<div class="yiv885752727moz-cite-prefix">Hi<br>
<br>
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. <br>
<br>
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.<br>
<br>
--<br>
Sathish<br>
<br>
On Saturday 13 October 2012 11:38 AM, Bhargav patel
wrote:<br>
</div>
<blockquote type="cite">
<div
style="color:#000;background-color:#fff;font-family:times
new roman, new york, times, serif;font-size:12pt;">
<div>Hello</div>
<div>I have a problem related VtkRenderingjava.dll <br>
</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;">I
already add my folder in to netbeans VM option lik</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;">-Djava.lib.path=D:\vtk\vtkbin\bin\Release</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;"><br>
</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;">But
still it gives unsatisfied llink error</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;">plz
help me in this problem <br>
</div>
<div style="color:rgb(0, 0, 0);font-size:16px;
font-family:times new roman, new york, times,
serif;
background-color:transparent;font-style:normal;">thanks<br>
</div>
</div>
<br>
<fieldset class="yiv885752727mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Powered by <a moz-do-not-send="true" rel="nofollow" class="yiv885752727moz-txt-link-abbreviated" target="_blank" href="http://www.kitware.com/">www.kitware.com</a>
Visit other Kitware open-source projects at <a moz-do-not-send="true" rel="nofollow" class="yiv885752727moz-txt-link-freetext" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a moz-do-not-send="true" rel="nofollow" class="yiv885752727moz-txt-link-freetext" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" rel="nofollow" class="yiv885752727moz-txt-link-freetext" target="_blank" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</div>
</div>
<br>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>