[vtkusers] Problem with java example...

Shyam Prakash ramakrishna.prakash at quest-global.com
Tue Jan 6 04:47:04 EST 2004


Vtk.jar if not in your classpath. Do something like

Javac -classpath .:vtk.jar Cone1.java (assuming vtk.jar is in the local
path)

Or you can set the CLASSPATH globally

--Shyam

> -----Original Message-----
> From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of
> Manoj, Narinder (IE10)
> Sent: Tuesday, January 06, 2004 3:18 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] Problem with java example...
> 
> Hi ! I have some hiccups getting started with the samples. Consider
the
> code
> below.
> 
> import vtk.*;
> public class Cone1
> {
>   static { System.loadLibrary("C:\\Program
> Files\\vtk42\\bin\\vtkCommonJava"); }
> 
>   // now the main program
>   public static void main (String []args) { System.out.println("One");
}
> }
> 
> 
> When I comile the code I get this error on the first line:
> 	package vtk does not exist
> 
> I have included the path to vtk\bin folder in my "PATH" and
"CLASSPATH"
> environment variables
> Is there something else I need to do?
> 
> Manoj Johar
> 
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list