On Thu, Sep 07, 2000 at 06:48:54PM +0200, 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
Leave off the ".class".
Nathan
>
> 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]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]