[vtkusers] regarding vtk4.0 java
Peter F Bradshaw
pfb at users.sourceforge.net
Thu Feb 7 10:49:28 EST 2002
Hi;
This is actually a linkage error. The problem is that you need to load
the "vtkJava" library. This can be done by:
class AVeryUsefullClass
{
static
{
System.loadLibrary("vtkJava");
}
.
.
.
}
Presumably you would want to load it up in the class that contains your
"main()". Of course your dynamic linker must be able to find the vtkJava
library. On Unix this is done by adding its path to the LD_LIBRARY_PATH
enviroment variable.
On Thu, 7 Feb 2002, S, Sripriya (MED) wrote:
> hi,
>
> Has any one used vtk4.0 with java? i have set the classpath to vtk.jar and
> while i execute i get the following error.
>
> java.lang.UnsatisfiedLinkError: VTKInit
> at vtk.vtkVolume16Reader.VTKInit(Native Method)
> at vtk.vtkObject.<init>(vtkObject.java:97)
> at vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
> at vtk.vtkSource.<init>(vtkSource.java:86)
> at
> vtk.vtkStructuredPointsSource.<init>(vtkStructuredPointsSource.java:30)
> at vtk.vtkVolumeReader.<init>(vtkVolumeReader.java:74)
> at vtk.vtkVolume16Reader.<init>(vtkVolume16Reader.java:94)
> at vtkreg.ReadImage.<init>(ReadImage.java:32)
> at vtkreg.ReadImage.main(ReadImage.java:51)
>
> Is there any other jar file which has to be included in classpath ??
>
> i have used the vtk3.2 version and i found that in java
> vtkImageData.getIncrements() method is not supported in vtk3.2 i get an
> error while i try to use this method?? has anyone used it??
>
> Thanks
> priya
>
>
> "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE and may contain confidential and privileged information.
> If the reader of this message is not the intended recipient,
> you are notified that any dissemination, distribution or copy of this
> communication is strictly Prohibited.
> If you have received this message by error, please notify us
> immediately, return the original mail to the sender and delete the
> message from your system."
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
Cheers
--
Peter F Bradshaw, pfb at users.sourceforge.net, ICQ 75431157 (exadios).
PGP public key at http://dingoblue.net.au/public_key.html
"Needs more salt" - Archimedes
More information about the vtkusers
mailing list