At 08:19 PM 10/5/98 -0400, Danny Lu wrote:
>But when I try to run a example program I wrote.. and I change
>the extension.. I got an error stating "Can't find class Example"
>
>okay at first I tried to compile my example program:
>       javac Example.java
>
>and I got Example.class... now I change the name of the Example.class to 
>Example:
>       mv Example.class Example

Your requirement seems strange but, have you tried;

ln Example.class Example

and then execute Example ?  I don't know if this will address your problem
since you didn't tell us what you are trying to do.

Another solution may be to create a script that contains "java Example".

>then I made the example executable:
>       chmod u+x Example
>
>and then I ran it...
>       ./Example
>
>I got the error message saying:
>       "Can't find class Example"
>
>that's what I was trying to say hehe =)
>
>Dan

Just a work around if it helps.

Douglas Toltzman

Reply via email to