[Mono-list] how to compile a java
Juan Cristóbal Olivares
jc.olivares@pad.cl
Wed, 6 Oct 2004 10:33:10 -0400
1.- The entry point is Main, not main [M is uppercase]
2.- You can use String, but you'll need either "using System;" or
"System.String" reference.
Juan C. Olivares
www.juancri.com
----- Original Message -----
From: "Rodolfo Campero" <rodolfocampero@hotmail.com>
To: <mono-list@lists.ximian.com>
Sent: Wednesday, October 06, 2004 10:14 AM
Subject: RE: [Mono-list] how to compile a java
> >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
>
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list