jame1002004 wrote:
> Hello,
>
> I am running debian sarge in ts11; I apt-get the following.
> apt-get install jikes
> apt-get install jamvm
> apt-get install jikes-classpath
>
> but when I tried to run a program Hello.java using the following command:
> "java Hello"
>
> ava.lang.NoClassDefFoundError: Hello
> <<No stacktrace available>>
>
>
> I also tried "jamvm Hello.java", about the same error occurs.
>
> java.lang.NoClassDefFoundError: Hello/java
> <<No stacktrace available>>
>
>
> Any ideas?
Doesn't look like you compiled your source. Java is not a interpreted
language like JavaScript and must be compiled beforehand into a binary
file. Not sure if those packages include the compiler or not, but the
Sun one is called javac, try that and see if it runs.
--
Jason Stahls
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|