This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj problems with helloworld


--- Sylvain Petreolle <spetreolle@yahoo.fr> wrote:
> Using gcj to compile a simple program gives non-understandable errors:
> 
> $ cat PremierProgramme.java
> //Premier programme Java
> class PremierProgramme {
>         public static void main (String[] arg) {
>                 System.out.println("Ca marche!");
>         }
> }
> 
> $ gcj -c PremierProgramme.java
> $ echo $?
> 0
> $ gcj PremierProgramme.java -o PremierProgramme
Sylvain,

Try:
gcj --main=PremierProgramme -o PremierProgramme PremierProgramme.java

Cheers,
Nicholas

__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]