Hi Johan,

        Please use the runtime in the following manner

        $ /usr/local/jdk1.2.2/bin/java -classpath . hello
        (that is no adding of hello.class).

Regards,
Sandeep


> Resent-Date: Thu, 7 Sep 2000 10:45:54 -0600 (MDT)
> X-Accept-Language: en, sv
> MIME-Version: 1.0
> To: [EMAIL PROTECTED]
> Subject: problems with java
> Content-Transfer-Encoding: 7bit
> Resent-Message-ID: <[EMAIL PROTECTED]>
> Resent-From: [EMAIL PROTECTED]
> X-Mailing-List: <[EMAIL PROTECTED]> archive/latest/4323
> X-Loop: [EMAIL PROTECTED]
> Resent-Sender: [EMAIL PROTECTED]
> 
> 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]
> 


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to