November 27, 2002
Java on FreeBSD [ Software ]
Tried to get Java 1.3.1 support working in FreeBSD (primarily for Mozilla), and it's not as straightforward as I thought it would be. There's more downloading & manual intervention required than for most ports.
After some trial, error and googling, I found that this worked:
- Make sure that you have Linux binary compability installed under FreeBSD.
- Go to http://wwws.sun.com/software/java2/download.html, and download the Java 2 SDK 1.3.1 source. The filename should look something like j2sdk-1_3_1-src.tar.gz. If you don't already have a Sun developer connection account, you'll have to create one before you can download the software. You'll also have to agree to the Sun community source license agreement.
- Go to http://www.eyesbeyond.com/freebsddom/java/jdk13.html and download the BSD patchset 7 for JDK 1.3.1. The filename should look something like bsd-jdk131-patches-7.tar.gz. You'll have to agree to the licensing agreement again.
- Go to http://java.sun.com/webapps/download/Display?BundleId=7163 and download the Linux binaries for the JDK 1.3.1. The filename should look something like j2sdk-1_3_1_06-linux-i586.bin. You'll have to agree to the licensing agreement again - wow, I could start reciting it from memory now.
- Move the downloaded files to /usr/ports/distfiles.
- Go to /usr/ports/java/jdk13 and do a 'make && make install'. You'll have to (guess what?) agree to the license again. Boy do I love non-BSD/GPL licenses. Compile compile compile and it'll get installed.
Seems like there ought to be an easier way to do this, but if this is the effect of Sun's licensing for Java, so be it. They're only shooting themselves in the foot by making their development environment harder for enthusiasts and hackers to use, as opposed to alternatives.
Posted by edobbs at November 27, 2002 07:41 AM
Original content copyright ©1995-2006 Eric Dobbs, except where otherwise noted.
