Karthik Vishwanath wrote:
> Hi all,
> i use magician with Java as on openGl implementation. I
> have the jdk1.1.7 running on Linux RH5.1. Magician requires that i have a
> CLASSPATH set. The current value of my CLASSPATH is:
> /data/karthik/magician/classes. If I compile a program which uses some
> magician classes, the program compiles fine. But, on trying to execute it
> with java solarSystem; i get the following error: "Can't find class
> solarSystem". The file solarSystem.class *does* exist in my 'pwd'. can
> anyone shed some light on what i must do?
>
> Regards,
> -Karthik.
>
> +-----------------------------------------------------------------+
> | Karthik Vishwanath, Graduate trainee, |
> | National Centre for Biological Sciences, TIFR Bangalore, India. |
> | Ph: (080)344-4062/5615/3035 | Ext:315. |
> | mail to: [EMAIL PROTECTED] |
> +-----------------------------------------------------------------+
> Microsoft isn't the answer.
> Microsoft is the question and the answer is NO.
Java can't find class solarSystem because it is not in your CLASSPATH.
You should include the current working directory in your CLASSPATH:
"./:/data/karthik/magician/classes"
Perhaps you have to include the classes.zip in your CLASSPATH, too.
Also make sure that if you use packages in your application then your
class file should be placed in a directory path respective to your package,
i.e. MyClass.class in package my.package must lie in a directory my/package
accessible from the CLASSPATH and has to be started with java
my.package.MyClass
--
Martin Sorgatz
[EMAIL PROTECTED]