Re: Java hello world link error

2003-12-28 Thread Gerrit P. Haase
Hallo Mauro, > 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. Please discuss this on the java list (and start a new thread), it

Re: Java hello world link error

2003-12-23 Thread Lapo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shankar Unni wrote: | It's not unexpected or incorrect, but may be suboptimal. | | The Java runtime insists that InetAddress.getLocalHost() return your | true IP address, not "127.0.0.1". Unfortunately, in a dialup setup with | automatic connection, suc

Re: Java hello world link error

2003-12-22 Thread Shankar Unni
mauro zallocco wrote: 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. It's not unexpected or incorrect, but may be suboptimal. This host is obviously you

Re: Java hello world link error

2003-12-21 Thread mauro zallocco
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 exp

Re: Java hello world link error

2003-12-21 Thread Jon A. Lambert
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 > You probably need to install one or both of these: $ cygcheck -c | grep iconv libiconv1.9.1-3

RE: Java hello world link error

2003-12-21 Thread mauro zallocco
t: Sunday, December 21, 2003 10:39 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Java hello world link error > > > At 08:04 PM 12/20/2003, mauro zallocco wrote: > > >Folks, > > > >I installed gcc-java on Windows XP, and am attempting to compile: >

Re: Java hello world link error

2003-12-21 Thread Tim Prince
At 08:04 PM 12/20/2003, mauro zallocco wrote: Folks, I installed gcc-java on Windows XP, and am attempting to compile: class Test { public static void main(String argv[]) { System.out.println("Hello World"); } } with the following command: g++ Test.java This produces a gazillion link e

Re: Java hello world link error

2003-12-21 Thread Jon A. Lambert
"mauro zallocco" wrote: > > with the following command: > g++ Test.java > gcj --main=Test Test.java See also: http://gcc.gnu.org/java/ -- J. Lambert -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

Java hello world link error

2003-12-20 Thread mauro zallocco
Folks, I installed gcc-java on Windows XP, and am attempting to compile: class Test { public static void main(String argv[]) { System.out.println("Hello World"); } } with the following command: g++ Test.java This produces a gazillion link errors, a sample follows: /cygdrive/c/DOCUME~1