HP-UX Programmer's Guide for Java 2

Table Of Contents
IPv6 Support in HP-UX Java Releases
Use of
Properties File?
Default
Protocol Stack
Install HP-UX
11.31 Patches?
Install HP-UX
11.23 Patches?
Install HP-UX
11.11 Patches?
HP-UX Java
Platform
NoIPv4NoNoYesSDK 1.4.2.x
NoIPv4NoNoYesJDK 5.0–5.0.14
YesIPv4NoNoYesJDK 5.0.15 and
later
NoIPv4NoNoYesJDK 6.0–6.0.02
YesIPv6NoNoYesJDK 6.0.03 and
later
For the availability of HP-UX patches required for IPv6 support on HP-UX 11.11, please
see
Patch Information
TOUR Transition Patches for HP-UX 11i
Setting IPv4 or IPv6 Support
The default protocol stack (IPv4 or IPv6) is set through the
java.net.preferIPv4Stack system property. However, if you want to change the
system property, you can set IPv4 or IPv6 support on the Java command line as follows:
IPv4 support:
-Djava.net.preferIPv4Stack="true"
IPv6 support:
-Djava.net.preferIPv4Stack="false"
Beginning with the JDK 5.0.15 and JDK 6.0.03 releases, you can use the properties file:
{JAVA_HOME}/jre/lib/net.properties
to set IPv4 support:
java.net.preferIPv4Stack=true
or to set IPv6 support:
java.net.preferIPv4Stack=false
30 HotSpot Technology Tools and Commands