[vtkusers] problem with java

Randy Heiland heiland at ncsa.uiuc.edu
Fri Dec 1 14:18:30 EST 2000


On Dec 1,  8:10pm, Miguel Angel Martin Fernandez wrote:
> Subject: [vtkusers] problem with java
> Hello users,
>
> 	I've compiled vtk with java support in redhat linux 7.0, with java
> 1.3. No problem at all.
>
> 	After that, I'm trying to test it with the example
>
> http://cgi.ncsa.uiuc.edu/People/heiland/vtk/sphere.java
>
> I really don't know anything about java, but I've made:
>
> % javac sphere.java
> % java sphere
>
> and I got the next trouble when execute "java sphere":
>
> Exception in thread "main" java.lang.NoClassDefFoundError: sphere/class
>
> My CLASSPATH is /usr/local/vtk31/java (I don't know if this is important)
>

For starters, try setting

CLASSPATH .:/usr/local/vtk31/java

--Randy




More information about the vtkusers mailing list