How to install Java JRE on FreeBSD with as couple of dependencies as feasible
I've been attempting to get Java working with my FreeBSD 7.1 server. I simply desire the runtime, given that the JDK drags all sort of unneeded dependencies with it, and also I simply require it to run a container documents occasionally. I've mounted the FreeBSD-supported diablo-jre, yet whenever I attempt to run it, I get a :
/usr/local/diablo-jre1.6.0/bin/java: 2: Syntax error: "(" unexpected
So what to do?
Ah, I've figured it out. For all this moment, I've been attempting to run the amd64 variation on an equipment that is still running i386. Mea culpa.
So to install Java on your FreeBSD web server with as couple of depedencies as feasible:
- Download the tarball (see to it to select the one under the tarballs header, and also for the proper FreeBSD variation and also system) from The FreeBSD foundation's Java downloads.
- Place the downloaded and install documents in
# cd /usr/ports/java/diablo-jre16
# make config install clean
- Be certain to disable all optional parts from the arrangement screen.
- Allow the installment run its training course and also enjoy :)