Enabling Java support for FreeBSD 5.x

Discussion, tips and tricks for the different Unix flavors

Enabling Java support for FreeBSD 5.x

Postby curlee » Wed May 03, 2006 12:45 pm

First of all, make sure you have cvsup'd. If you haven't there is no way you will be able to match up the right versions of the three files.

edit /usr/src/sys/i386/conf/MYKERNEL
Add these lines:
options EXT2FS # Linux
options LINPROCFS # Linux proc filesys support

# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# reboot

Mount the linprocfs:
# mount -t linprocfs linprocfs /compat/linux/proc

Add linprocfs to /etc/fstab
linprocfs /compat/linux/proc linprocfs rw 0 0

# kldload linprocfs (bsd 4.x)
# mount /compat/linux/proc

goto: http://java.sun.com/j2se/corejava/index.jsp
Dowload the latest stable release
goto: http://wwws.sun.com/software/communitys ... nload.html
Download the latest and greatest
goto: http://www.eyesbeyond.com/freebsddom/java/index.html
Download the latest patch for FreeBSD

# cd /usr/ports/java/linux-sun-jdk14
# make install && make clean

# cd /usr/ports/java/jdk14
# make install && make clean

# reboot

To see if it worked, restart Mozilla and go to Help -> About Plug-ins. You should get about a page's worth of Java plugins. A short trip to javaboutique.internet.com should convince you that Java is indeed functional.
Site Admin
Posts: 49
Joined: Wed May 03, 2006 12:01 pm

Return to BSD/Linux/Unix

Who is online

Users browsing this forum: No registered users and 2 guests