[vtkusers] install java and vtk on Windows
Marcelo Costa Oliveira
marcelo at cci.fmrp.usp.br
Fri Sep 13 14:41:57 EDT 2002
Tanks Jarek
but i´m still have problems.......
My steps was ( in Windows XP, java 1.4.0.02 and vtk4.0 )
Cmake ( in attach )
build vtk.dsw ( with visual c++ 6.0 )
c:\jdk\bin\javac *.java ( in vtk\java\ )
c:\jdk\bin\jar cf vtk.jar *.class ( in vtk\java\ )
c:\jdk\bin\javac -classpath .;c:\vtk\java\vtk.jar SimpleVTK.java
The problem:
SimpleVTK.java:5: package vtk does not exist
import vtk.*;
^
SimpleVTK.java:19: cannot access vtkConeSource
bad class file: c:\vtk\java\vtk\vtk.jar(vtkConeSource.class)
class file contains wrong class: vtk.vtkConeSource
Please remove or make sure it appears in the correct subdirectory of the
classpa
th.
vtkConeSource cone = new vtkConeSource();
----- Original Message -----
From: "Jarek Sacha" <galicjan at yahoo.com>
To: "Marcelo Costa Oliveira" <marcelo at cci.fmrp.usp.br>; "VTK-List"
<vtkusers at public.kitware.com>
Sent: Friday, September 13, 2002 10:01 AM
Subject: Re: [vtkusers] install java and vtk on Windows
> --- Marcelo Costa Oliveira <marcelo at cci.fmrp.usp.br> wrote:
> > Hi, users !!!
> >
> > Windows XP, java 1.3.1 and vtk4.0
>
> This is not your immediate proble, but Java 1.3.1 does not work well with
> VTK on NT/2000/XP, try 1.4.0 or 1.4.1.
>
> >
> > I have *.java
> >
> > and *.class
> >
> >
> > And this problem happened
> >
> >
> > C:\vtk\Examples>c:\jdk\bin\javac SimpleVTK.java
> > SimpleVTK.java:5: package vtk does not exist
> > import vtk.*;
> You immediate problem: you need to have vtk.jar in your classpath while
> compiling or running VTK code. Either set CLASSPATH variable to where your
> vtk.jar or passit as an option to the compiler like this:
>
> c:\jdk\bin\javac -classpath .;c:\mypath\vtk.jar SimpleVTK.java
>
> "." is needed to include you current directory, replace c:\mypath with
> wherever your vtk.jar is. Put a path in quotation marks "" if it contains
> spaces, e.g.:
>
> c:\jdk\bin\javac -classpath .;"c:\my path\vtk.jar" SimpleVTK.java
>
>
> Hope this helps,
>
> Jarek
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> http://news.yahoo.com
> _______________________________________________
> 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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020913/feb1f476/attachment.txt>
More information about the vtkusers
mailing list