Java JRE/JDK for FreeBSD?

cpghost cpghost at cordula.ws
Thu May 12 16:25:35 UTC 2016


On 05/12/16 18:12, cpghost wrote:
> On 05/12/16 06:44, Norbert Raimund Leisner wrote:
>> Hello support-team, hello Roman,
>>
>> on the Oracle website http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
>> I didn´t find a suitable FreeBSD package there  for Java.
> 
> Hello Norbert,
> 
> if you can live with OpenJDK 8, just install the port
> java/openjdk8 and you're all set.
> 
> You may also want to install an IDE, like java/eclipse
> or java/intellij to ease development. Both run just fine
> with OpenJDK8:
> 
> $ uname -a
> FreeBSD phenom.fritz.box 10.3-STABLE FreeBSD 10.3-STABLE #0 r299381: Tue May 10 21:34:52 CEST 2016     root at phenom.fritz.box:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> $ java -version
> openjdk version "1.8.0_77"
> OpenJDK Runtime Environment (build 1.8.0_77-b03)
> OpenJDK 64-Bit Server VM (build 25.77-b03, mixed mode)

I just forgot to add that because of the java VM wrapper
that enables one to install many Java implementations side-by-side
on the same machine, you need to set those environment variables in
your shell profile before you can invoke "java" and "javac":

$ printenv | grep JAVA
JAVA_VERSION=1.8
JAVA_VENDOR=openjdk

Good luck,

-cpghost

-- 
Cordula's Web. http://www.cordula.ws/



More information about the freebsd-questions mailing list