# 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?

0
2019-05-07 12:55:34
Source Share

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 /usr/ports/distfiles/
• # 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 :)
0
2019-05-17 09:40:38
Source
file /usr/local/diablo-jre1.6.0/bin/java


Will possibly inform you that java is in fact a covering manuscript that establishes a setting and also releases the actual JRE

0
2019-05-10 14:26:32
Source