Johan Groth wrote:
>
> Hi,
> After I installed 1.2.2 version of the JDK I tried to get a very simple
> program to work. It looks like this:
>
> /** file hello.java **/
> /** --------------- **/
>
> public class hello {
> public static void main(String args[]) {
> System.out.println("Hello, world");
> }
> }
>
> I compiled it with
>
> $ /usr/local/jdk1.2.2/bin/javac hello.java
>
> and tried to run it with:
>
> $ /usr/local/jdk1.2.2/bin/java hello.class
>
> and gets with following output:
> $ Exception in thread "main" java.lang.NoClassDefFoundError: hello/class
Make sure "." is in your CLASSPATH and use the command
/usr/local/jdk1.2.2/bin/java hello
to run it (don't append the .class)
--
Chris Kakris http://www.dynamic.net.au/christos/
ZDS Services Pty Ltd 414 Gilbert Road, Preston, Victoria 3072, Australia
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]