Installing Java on FreeBSD using /usr/ports/java/jdk14 is possibly the most annoying port ever to install. Its going to require you to manually go on online, register for an account on sun.com, and download several files from sun.com and other places. It will also of course ask for these through out the install instead of all at the beginning. So if you have room it is a good idea to just save these files somewhere for the next time you need them. And once you have it installed you will need to add the following directories to your path or your programs will be unable to find it.

/usr/local/jdk1.4.2/bin
/usr/local/jdk1.4.2/lib

Unless the program is purely text based and doesn’t do anything fancy the native version of java for FreeBSD is probably going to mess it up and display it totally different than it should really look. For this reason you might want to instead point your path to the linux version of sun which the FreeBSD version requires and installs when you use the port.

/usr/local/linux-sun-jdk1.4.2/bin
/usr/local/linux-sun-jdk1.4.2/lib

There are also several other versions of Java available in the ports such as linux-blackdown-jdk14 which do not require you to download anything manually, and sometimes works better.

Post By Editor (2,827 Posts)

Website: →

Connect