[vtkusers] Using VTK w/ Java - Can't get past VtkInit error
Shyam Prakash
ramakrishna.prakash at quest-global.com
Thu Dec 4 23:59:28 EST 2003
Do you have the following lines in your code? If not add the following
static {
System.loadLibrary("vtkCommonJava");
System.loadLibrary("vtkFilteringJava");
System.loadLibrary("vtkIOJava");
System.loadLibrary("vtkImagingJava");
System.loadLibrary("vtkGraphicsJava");
System.loadLibrary("vtkRenderingJava");
System.loadLibrary("vtkHybridJava");
System.loadLibrary("vtkParallelJava");
}
--Shyam
> -----Original Message-----
> From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of
> Fran Fabrizio
> Sent: Friday, December 05, 2003 9:56 AM
> To: Mona Wong-Barnum; vtkusers at vtk.org
> Subject: Re: [vtkusers] Using VTK w/ Java - Can't get past VtkInit
error
>
>
> No change from what I sent yesterday and first email today - here it
is
> though:
>
> > [fran at freeman Java]# java Cone
> > Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
> > at vtk.vtkConeSource.VTKInit(Native Method)
> > at vtk.vtkObject.<init>(vtkObject.java:98)
> > at vtk.vtkProcessObject.<init>(vtkProcessObject.java:86)
> > at vtk.vtkSource.<init>(vtkSource.java:86)
> > at vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
> > at vtk.vtkConeSource.<init>(vtkConeSource.java:114)
> > at Cone.main(Cone.java:33)
> > [fran at freeman Java]#
> >
> > I have made sure that vtk.jar is in the classpath (by dropping it
into
> > my ext directory). I have export LD_LIBARY_PATH=/usr/local/lib/vtk/
so
> > it can find the libraries. I have googled on this error without any
> > luck. Does anyone know what I could try next?
>
> Thanks,
> Fran
>
> At 05:34 PM 12/4/2003 -0800, you wrote:
> >Hi Fran:
> >
> > Can you email me the command line you are using along with
the
> > entire
> >error message? I'd like to take another look.
> >
> >Mona
> >
> >==================================================================
> >Mona Wong-Barnum
> >National Center for Microscopy and Imaging Research
> >University of California, San Diego
> >http://ncmir.ucsd.edu/
> >
> >"Circumstances don't make a man, they reveal him"
> > -- James Allen
> >==================================================================
More information about the vtkusers
mailing list