[Mono-list] how to compile a java
Rodolfo Campero
rodolfocampero@hotmail.com
Wed, 06 Oct 2004 14:14:35 +0000
>From: "miKeL a.k.a.mc2" <akamc2@yahoo.ca>
>To: mono-list@lists.ximian.com
>Subject: [Mono-list] how to compile a java
>Date: Wed, 06 Oct 2004 16:04:23 +0200
>
>hello,
>
>I can't compile source like
>
>// created on 06/10/2004 at 00:48
>class HolaMon{
> public static void main(String [] args){
> System.out.println("Hola mon");
> }
>}
miKeL, mono supports C# and partially VB.NET, but not Java.
If you're use using mcs, your program should look like:
class HolaMon {
public static void main(string [] args){
System.Console.WriteLine("Hola mon");
}
}
Pay attention to the lower case in "string".
Regards,
Rodolfo
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail