tinland wrote:
> After an installation de jdk1.2 on Linux RedHat 6
>
> I can Compile with javac in Xterm windows and i get one file.class
>
> When i would run this file.class i use "java file.class" and it return this error :
> at java.lang.NoClassDefFoundError.
>
No, no , no.
you must call java with a class name not a class file for example if your class is
named file and resides on file.java after compilation you effectively have file.class
then you must tell the interpreter
java file
(note that as the Java Language is case sensitive you must name the class in le line
command with the right case.)
also note that the CLASSPATH enviroment variable must point tu the current directory
CLASSPATH=.:$JAVA_HOME/lib:(whatever classes you want to point to)
Good Luck!
>
> Could you help me
>
> Thanks
>
> Olivier TINLAND
> French
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]