How to bulid VTK program in JDK1.2?
Martijn de Boer
m.deboer at ti.uni-mannheim.de
Thu Feb 24 05:27:33 EST 2000
Hi,
this is probobly a problem with packages being in wrong directories.
What is the command you issued for compiling?
I you have a class Test which belongs to the package mypackage and have
all .java files belonging to different packages in one directory, you
need to issue the -d <directory to put class files into>
option in javac, i.e. javac -d . *.java. This will then create a dir
mypackage and put the Test.class file into this directory.
> csyang wrote:
>
> Hi,all:
> I have installed jdk1.2 in d:\jdk1.2 and installed vtk24java in
> d:\vtk24java.Now,I want rebuild test.class use javac,but there are
> following errors.How can I do,thanks!
>
> error: File d:\vtk24win32src\java\vtk\vtkRenderWindow.class does not
> contain typ
> e vtkRenderWindow as expected, but type vtk.vtkRenderWindow. Please
> remove the f
> ile, or make sure it appears in the correct subdirectory of the class
> path.
> Regression.java:6: Class vtkRenderWindow not found.
> vtkRenderWindow renWin = new vtkRenderWindow();
> ^
> Regression.java:6: Class vtkRenderWindow not found.
> vtkRenderWindow renWin = new vtkRenderWindow();
> ^
> error: File d:\vtk24win32src\java\vtk\vtkRenderer.class does not
> contain type vt
> kRenderer as expected, but type vtk.vtkRenderer. Please remove the
> file, or make
> sure it appears in the correct subdirectory of the class path.
> Regression.java:7: Class vtkRenderer not found.
> vtkRenderer ren1 = new vtkRenderer();
> ^
> Regression.java:7: Class vtkRenderer not found.
> vtkRenderer ren1 = new vtkRenderer();
> ^
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list