You are here: DesktopBSD Wiki Portal » doc » Using Suns Java as native port

Translations of this page?:

Using Suns Java as native port

Sometimes you will need Java, maybe in your browser or for certain applications like OpenOffice, Freemind, Azureus and so on. You can of course use Java JRE but because FreeBSD is source-based I would recommend Java JDK. The latter one is necessary to compile certain Java applications.

1) Download the file at FreeBSDFoundation an scroll down to tarballs, choose this file

diablo-caffe-freebsd5-i386-1.5.0_07-b00.tar.bz2

2) Become root and copy the file to /usr/ports/distfiles

#su

#cp diablo*.bz2 /usr/ports/distfiles

3) Install it via ports

#cd /usr/ports/java/diablo-jdk15

#make install clean

Ready.