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 |
Reply-To: | <mzallocc AT nc DOT rr DOT com> |
From: | "mauro zallocco" <mzallocc AT nc DOT rr DOT com> |
To: | <cygwin AT cygwin DOT com>, <jlsysinc AT alltel DOT net> |
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 |
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" <at alltel dot net> 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |