delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3E19644E.6080904@lapo.it> |
Date: | Mon, 06 Jan 2003 12:11:10 +0100 |
From: | Lapo Luchini <lapo AT lapo DOT it> |
User-Agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3b) Gecko/20030102 |
X-Accept-Language: | it, en, fr, es |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Java (1 of 3): Gcj - Hello world exe (again) |
References: | <C9150052B112D3119E9E0004ACA6E43702EFEAC2 AT tepg1 DOT tepg DOT co DOT uk> |
In-Reply-To: | <C9150052B112D3119E9E0004ACA6E43702EFEAC2@tepg1.tepg.co.uk> |
X-Enigmail-Version: | 0.71.3.0 |
X-Enigmail-Supports: | pgp-inline, pgp-mime |
Bruce Adams wrote: >Hello.java (note: case is important in this filename) >========== > >class Hello { > public Hello() {}; > > public static void main(String args[]) { > int returnCode = 0; > System.out.println("hello world\r\n"); > System.exit(returnCode); > } >} > > lapo AT CYBERONE ~ $ export CLASSPATH= lapo AT CYBERONE ~ $ gcj --main=Hello -gstabs Hello.java -o Hello.exe lapo AT CYBERONE ~ $ ./Hello.exe hello world The only note is that I had to be sure CLASSPATH was empty or else rt.jar was found before libgcj.jar and I got an error about java.lang.Object being the wrong version. -- Lapo 'Raist' Luchini lapo AT lapo DOT it (PGP & X.509 keys available) http://www.lapo.it (ICQ UIN: 529796) -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |