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
-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
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
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
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
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:
>
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
"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:
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
9 matches
Mail list logo