[Mono-list] how to compile a java
Clayton Harbour
claytonharbour@sporadicism.com
Wed, 6 Oct 2004 08:00:04 -0700
Hi miKeL,
If you use the ikvmc (ikvm compiler) you can compile a java class file =
into a .net binary, however I don't think there is a way to compile a =
java file directly, which I am taking from the ikvm site: =
http://www.ikvm.net/devguide/java2net.html. From what I understand ikvm =
is just a byte code converter/ translator and does not actually generate =
byte code from source files. Hope that helps.
Cheers,
Clayton
> -----Original Message-----
> From: Juan Crist=F3bal Olivares [mailto:jc.olivares@pad.cl]=20
> Sent: October 6, 2004 7:33 AM
> To: Rodolfo Campero; mono-list@lists.ximian.com
> Subject: Re: [Mono-list] how to compile a java
>=20
>=20
> 1.- The entry point is Main, not main [M is uppercase]
> 2.- You can use String, but you'll need either "using=20
> System;" or "System.String" reference.
>=20
> Juan C. Olivares
> www.juancri.com
>=20
> ----- Original Message -----=20
> 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
>=20
>=20
> > >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){ =20
> System.out.println("Hola=20
> > >mon"); }
> > >}
> >=20
> > miKeL, mono supports C# and partially VB.NET, but not Java.
> >=20
> > If you're use using mcs, your program should look like:
> >=20
> > class HolaMon {
> > public static void main(string [] args){=20
> > System.Console.WriteLine("Hola mon"); }
> > }
> >=20
> > Pay attention to the lower case in "string".
> > Regards,
> > Rodolfo
> >=20
> > _________________________________________________________________
> > The new MSN 8: smart spam protection and 2 months FREE*
> > http://join.msn.com/?page=3Dfeatures/junkmail
> >=20
> > _______________________________________________
> > Mono-list maillist - Mono-list@lists.ximian.com=20
> > http://lists.ximian.com/mailman/listinfo/mono-list
> _______________________________________________
> Mono-list maillist - Mono-list@lists.ximian.com=20
> http://lists.ximian.com/mailman/listinfo/mono-list
>=20