Title: RE: problems with java

Hi,

Try running with:

/usr/local/jdk1.2.2/bin/java hello

instead of
/usr/local/jdk1.2.2/bin/java hello.class

(java thought you were trying to run the 'class' class in package 'hello')


> -----Original Message-----
> From: Johan Groth [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 07, 2000 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: problems with java
>
>
> 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
>
> Does anyone know what's going on here?
>
> /Johan
>              
> --
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>    "Better to ask questions and seem stupid
>     than not to ask questions and remain stupid" -Unknown
>            Johan Groth <[EMAIL PROTECTED]> Kupolen Data
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>

Reply via email to