PDA

View Full Version : Java 1.4.1 on FreeBSD?



amorphic8
07-08-2004, 03:37 AM
I am running a webserver on FreeBSD and am trying to install a web cam package for a new client that requires Java 1.4.1. I am not that familiar with the setup and command-line lingo of Unix as of yet, but I am learning.

I contacted the company from which I am leasing the server and asked if they could help. They said that they could not find a 1.4.1 version of Java for this platform so they installed 1.3.1 instead.

I haven't tried it yet to see if it would work, but the web cam application specifically stated that it requires 1.4.1. Does anyone have some information on this? Does Java 1.4.1 exist for FreeBSD? and if so, is it easy to intsall/upgrade?

netman4ttm
07-08-2004, 05:38 PM
BSD comes with a Linux compatibilty setup. That might help.
The Linux install looks like this

download the sdk from SUN

ussually named j2sdk [version number]-linux.i386.bin

as root type chmod 0700 j2sdk* (to make it executable)
then ./j2sdk*
that will take you through licensing and then unpack the java sdk in /usr/java/j2 etc. etc (you will need to write down where this file went.

Next step

cd /etc/profile.d and create a file called java.sh
the contents of java.sh will be
JAVA_HOME=/usr/java/j2 (where ever it went)
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH

Logout
login
type javac at the command prompt
if there is a responce other than "what are you talking about" you got it.

CAVEAT THIS IS A LINUX SOLUTION AND I HAVE NO IDEA IF IT WILL WORK WITH BSD

This is an issue that a Unix/Linux/BSD users group would be able to answer and NY NJ probably has a ton of those people available.