[vtkusers] VTK + Java + Windows XP

Rodrigo rca.cirdan at gmail.com
Mon Aug 20 07:30:52 EDT 2007


Hi!!

Thank you all for your help!!

I'll try to follow all the tips you said and if I get some difficult, I
write you again...

If I get some success, I tell you how I did it.. =)

Thanks once more!

Regards,

Rodrigo


On 8/19/07, Bartlomiej Wilkowski <wilku_83 at o2.pl> wrote:
>
> Hi Rodrigo,
>
> I saw that Stephen has already given you the link to my howto
> webpage. I suppose that if you configure your paths as I wrote there
> and use vtk.jar file with your project it should work.
>
> For your future work I will also give you one clue. When you create a jar
> file of your VTK with Java program, it can happen that it will not work on
> some other computers and you will get the same error as you have now. This
> is because, when you compile VTK with Visual Studio 2005 or higher, the
> created dlls unfortunately have dependencies to .NET  2.0 platform
> so what I discovered that it is necessary to install this platform anywhere
> you want to run your final application. I dont really like it, but I didnt
> find better solution. If you compile with older Visual Studio this problem
> does not appear. I can send you also info about
> how the Path environment is configuured on my comp.
>
> write me if you have any more questions considering VTK + Java.  I was
> using Eclipse not NetBeans but I believe this is no problem since this is
> only tool. I ll try to help.
>
> good luck,
>
> Bartek Wilkowski
>
>
> 2007/8/18, Stephen <mailinglists at icaril.eclipse.co.uk>:
> >
> > hi
> >
> > you might like to look at the guide written by Bartek at
> >
> > http://www.vtk.org/pipermail/vtkusers/2006-December/088478.html
> >
> > The error you describe sounds like the software can't find the dlls
> > however. Either a dll has not been loaded in your code via
> >
> >
> >         System.loadLibrary("vtkCommonJava");
> >         System.loadLibrary ("vtkFilteringJava");
> >         System.loadLibrary("vtkIOJava");
> >         System.loadLibrary("vtkImagingJava");
> >         System.loadLibrary("vtkGraphicsJava");
> >         System.loadLibrary ("vtkRenderingJava");
> >         System.loadLibrary("vtkHybridJava");
> >         System.loadLibrary("vtkWidgetsJava");
> > etc
> >
> > or the path to dlls has not been specified correctly in your environment
> >
> > variables. Here is an excerpt from mine..
> >
> > C:\jdk1.5.0_10\bin;C:\vtk-5.0.2\VTKbin\bin\release;
> >
> > If you have doubts about the integrity of your build you could try
> > downloading Cassandra which includes precompiled VTK Java wrappers.
> >
> > http://dev.artenum.com/projects/cassandra
> >
> > good luck!
> >
> > Stephen
> >
> >
> >
> > Rodrigo wrote:
> >
> > > Hello,
> > >
> > > I've being trying to  compile VTK  to run on Windows XP OS and use it
> > > with Java!
> > > I usually use NetBeans to build my Java projects...
> > >
> > > But I'm getting some difficulties on this compilation...
> > > I've download Cmake, v. 2.6, also Visual Studio 2008, and tried some
> > > steps I've found into
> > > internet tutorials.
> > >
> > > I can configure everything on Cmake, and build the vtk source using
> > > Visual Studio, as followed
> > > the tutorials.
> > > Now, I did the compilation of a "java + vtk" program works.. But when
> > > I try to run it, the follow
> > > errors occour:
> > >
> > > "Exception in thread "main" java.lang.UnsatisfiedLinkError : VTKInit"
> > >
> > > I have already tried to re-configure my PATH and CLASSPATH variables,
> > > but I got no success,
> > > each time, a diferent error occours..
> > >
> > > The question is just easy:
> > >
> > > Can someone help me???
> > > Is there a official documentation (or just one that really works) that
> >
> > > explains how to configure the complete enviroment to use
> > > Java + VTK on Windows XP??
> > >
> > > Thanks for any help!!
> > >
> > > Rodrigo
> > >
> > >
> > >
> > >
> > >------------------------------------------------------------------------
> >
> > >
> > >_______________________________________________
> > >This is the private VTK discussion list.
> > >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> >
> > >Follow this link to subscribe/unsubscribe:
> > >http://www.vtk.org/mailman/listinfo/vtkusers
> > >
> > >
> >
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the 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/20070820/c92264e9/attachment.htm>


More information about the vtkusers mailing list