Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2016 18:25:30 +0200
From:      cpghost <cpghost@cordula.ws>
To:        Norbert Raimund Leisner <norbert.raimund.leisner@arcor.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Java JRE/JDK for FreeBSD?
Message-ID:  <ba38025f-f325-4ad8-51b3-d93468e72d92@cordula.ws>
In-Reply-To: <81cc0661-0320-ccf4-8df0-ad344355e15f@cordula.ws>
References:  <1245383132.240643.1463028248731.JavaMail.ngmail@webmail10.arcor-online.net> <81cc0661-0320-ccf4-8df0-ad344355e15f@cordula.ws>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba38025f-f325-4ad8-51b3-d93468e72d92>