[vtkusers] install java and vtk on windows ( almost there )
galicjan at yahoo.com
Mon Sep 16 21:14:44 EDT 2002
At 11:20 PM 9/15/2002, marcelo oliveira wrote:
>I think that we almost there...
>Now, this error appear when i try to compile
>simplevtk.java ( vtkpanel.class
>is on vtk.jar )
>simplevtk.java:6: package vtkPanel does not exist
>simplevtk.java:18: cannot access vtk.vtkPanel
>bad class file:
>class file contains wrong class: vtkPanel
>Please remove or make sure it appears in the correct
>subdirectory of the
> vtkPanel renWin = new vtkPanel();
As the error message indicates. You have vtkPanel.class in the wrong place
in the vtk.jar. vtkPanel should be in the root of the vtk.jar file, seems
that you have it inside subdirectory vtk. (yes, it is a bit confusing,
vtkPanel is in 4.0 treated different then most other VTK Java classes).
>and when i try to compile cone.java:
>cone.java ( IS OK !!!!)
>Exception in thread "main"
>java.lang.NoClassDefFoundError: cone (wrong name:
> at java.lang.ClassLoader.defineClass0(Native
I am not sure what cone.java is, but you may have with lack of case
sensitivity in Windows file name handling. Unlike Windows, Java can see
difference between small and capital letters in file names. Probably inside
cone.java you have class Cone. You may need to rename cone.java to
Cone.java to avoid confusion.
Hope this helps,
More information about the vtkusers