OpenJDK6 not building
Damian Gerow
dgerow at afflictions.org
Wed May 19 21:25:17 UTC 2010
Stacy Millions wrote:
: On 05/19/10 14:50, Damian Gerow wrote:
: > Stacy Millions wrote:
: > : On 05/19/10 01:15, Dominic Fandrey wrote:
: > :
: > :> java.net.SocketException: Invalid argument
: > :> at java.net.PlainSocketImpl.socketConnect(Native Method)
: > :> at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:310)
: > :
: > : I have seen that before... Have you enabled IPv6 support? Have you set
: > : the system property java.net.preferIPv4Stack=true? Perhaps setting the
: > : environment variable JAVAVM_OPTS thusly will help
: > : JAVAVM_OPTS="-Djava.net.preferIPv4Stack=true"
: >
: > There are no AAAA records for jaxp.dev.java.net, so preferring v4 won't help
: > much.
:
: AAAA records are not part of the issue... if you want a quick and dirty
: test, try this
Regardless, I tried with java.net.preferIPv4Stack=true, and it had no effect.
: 1. download http://javassh.org/download/jta26.jar this is a java/swing
: telnet client
:
: 2. Run
: java -jar jta26.jar <someipaddress>
: and you get:
: Socket: can't connect: java.net.SocketException: Invalid argument
:
: 3. Run
: java -Djava.net.preferIPv4Stack=true -jar jta26.jar <someipaddress>
: and it works (assuming there is a telnet server there to connect to)
:
: At least that is how things behave for me.
That seems ... counter-intuitive.
More information about the freebsd-ports
mailing list