install java freebsd diablo-jdk-1.6.0.07.02_10

download the tbz file from

http://www.freebsdfoundation.org/downloads/java.shtml

do a pkg_add, ex

pkg_add diablo-jdk-freebsd6.i386.1.6.0.07.02.tbz

If that errors out with something like

checking pkg-config is at least version 0.9.0... yes
checking for XI... configure: error: Package requirements (xproto >= 7.0.13 x11 >= 1.2.99.1 xextproto >= 7.0.3 xext >= 1.0.99.1 inputproto >= 1.9.99.902) were not met:

Requested 'x11 >= 1.2.99.1' but version of X11 is 1.1.3
Requested 'xext >= 1.0.99.1' but version of Xext is 1.0.3

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XI_CFLAGS
and XI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

then you need to run

portmaster -u /usr/ports/java/diablo-jdk16

After that completes verify that java was installed properly

pkg_info -x diablo

You should see something like

Information for diablo-jdk-1.5.0.07.00:

Comment:
Java Development Kit 1.5.0_07.00


Required by:
j2sdkee-1.3.1_4


Description:
The Java Development Kit (JDK) provides the Java Virtual Machine,
base classes, and development tools to permit developers to create
new Java applications, applets, and components on FreeBSD.

WWW: http://www.FreeBSDFoundation.org/downloads/java.shtml



Information for diablo-jdk-1.6.0.07.02_10:

Comment:
Java Development Kit 1.6.0_07.02


Description:
The Java Development Kit (JDK) provides the Java Virtual Machine,
base classes, and development tools to permit developers to create
new Java applications, applets, and components on FreeBSD.

WWW: http://www.FreeBSDFoundation.org/downloads/java.shtml

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>