Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Reply-To: From: "mauro zallocco" To: , Subject: Re: Java hello world link error Date: Sun, 21 Dec 2003 19:52:31 -0500 Message-ID: <000001c3c825$e23a69d0$6664a8c0@cipheroptics.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine Note-from-DJ: This may be spam Jon, installing libiconv and using "--main=Test" did the trick. Thanks. I looked at http://gcc.gnu.org/java/ and found http://www.linuxjournal.com/article.php?sid=4860 which discusses compiling java. One last thing. I noticed that the resulting Test.exe attempts to access the internet. Is this expected ? Its trying to access 24.25.4.107 which my getHost tool tells me is rlghnc-dns-cac-02-dmfe1.nc.rr.com. Mauro mauro zallocco wrote: > $ gcj Test.java > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld: > cannot > find -liconv > collect2: ld returned 1 exit status > Jon A. Lambert" You probably need to install one or both of these: $ cygcheck -c | grep iconv libiconv 1.9.1-3 OK libiconv2 1.9.1-3 OK ---------------------------------------------------- Test.java class Test { public static void main(String argv[]) { System.out.println("Hello World"); } } /Mauro -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/