which java on 8-release

Nerius Landys nlandys at gmail.com
Fri Feb 5 00:51:09 UTC 2010


> Tried to get any permutation of XYZ-jre or XYZ-jdk installed on 8-rc1
> and gave up.  I see still no diablo for 8.  What is the best way
> forward (and how am I so dense that no one else has even asked this
> question, I must be on the wrong track, no?)  I saw a few posts about
> having to install diablo in order to build openjdk, so that's out
> too...what is the 'magic' port that people use?  I just want to run
> all the apps that need java, I don't plan to write any java on my own.

I compiled Java 1.5 from ports on 8.0 (both on i386 and on amd64).

> cd /usr/ports/java/jdk15/
> make install clean
(Then follow directions about downloading tarballs and placing them in
/usr/ports/distfiles/ .)

Along the way to building this port, it automatically installed the
compat-7 mentioned above, as well as the diablo JDK.  When the install
was all finished, I uninstalled the diablo JDK so that I'd have just
my freshly-compiled JDK 1.5 installed.

I'm sure building JDK 1.6 from ports is similar:

> cd /usr/ports/java/jdk16/
> make install clean

I prefer JDK 1.5 because it's simpler and has less dependencies, but
that's just me.


More information about the freebsd-questions mailing list