SIGforum
Java on MacOS – need advice

This topic can be found at:
https://sigforum.com/eve/forums/a/tpc/f/320601935/m/8520033564

January 11, 2020, 04:29 PM
Pipe Smoker
Java on MacOS – need advice
I wanted to install a Java JRE (Java Run Time Environment) file. I downloaded:
jre-9.0.4_osx-x64_bin.dmg

From this site:
www.oracle.com/technetwork/jav...javase9-3934878.html

I double-clicked the DMG to install JRE, but saw this unsettling report:
“You have Successfully Installed Java 9.0.4”

I didn’t want to install Java (i.e., the Java JDK). I wanted only the JRE. Can someone familiar with Java tell me how to discover if I have all of Java, or only its JRE?



Serious about crackers.
January 11, 2020, 04:56 PM
cjevans
Downloaded the same .dmg on my Mac - Mojave 10.14.6

Then, opened a terminal window:

$ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

Output viewed:
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

That help you?

--chris



We are all born ignorant, but one must work hard to remain stupid." ~ Benjamin Franklin.

"If anyone in this country doesn't minimise their tax, they want their head read, because as a government, you are not spending it that well, that we should be donating extra...:
Kerry Packer

SIGForum: the island of reality in an ocean of diarrhoea.
January 11, 2020, 06:35 PM
fpuhan
You might want to consider openJDK instead of Oracle Java.

https://java.tutorials24x7.com...-openjdk-12-on-macos

Oracle last year changed its licensing structure for Java. It probably won't affect you if you're not a developer, but the long and short of it is that Oracle's Java may not be free. OpenJDK is a "downstream" release of the Java code, kind of like Fedora (and CentOS) are downstream releases of Red Hat Enterprise Linux. This is explained on the page linked, above.

Just sayin'...




You can't truly call yourself "peaceful" unless you are capable of great violence. If you're not capable of great violence, you're not peaceful, you're harmless.

NRA Benefactor/Patriot Member
January 11, 2020, 07:35 PM
Pipe Smoker
quote:
Originally posted by cjevans:
Downloaded the same .dmg on my Mac - Mojave 10.14.6

Then, opened a terminal window:

$ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

Output viewed:
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

That help you?

--chris

Thanks. I did that too, seeing:
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
bash{9}>



Serious about crackers.
January 12, 2020, 08:16 AM
Pipe Smoker
quote:
Originally posted by fpuhan:
You might want to consider openJDK instead of Oracle Java.
<snip>

Thanks for that info. But I don’t want the JDK. I want the JRE, and only the JRE. And it appears that I’ve successfully installed the Oracle JRE 9.0.4.



Serious about crackers.
January 12, 2020, 08:19 AM
henryaz
quote:
Originally posted by cjevans:
Downloaded the same .dmg on my Mac - Mojave 10.14.6

Then, opened a terminal window:

$ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

I just run this:
$ java -version
from a Terminal prompt. No need for the full path.

BTW, unless you absolutely need to view a web site programmed in Java, you should remove that Java Internet plugin (or move it to /Library/Internet\ Plug-Ins/Disabled\ Plug-Ins. Java is not the same as javascript, which many web sites use. Java was used in the past to program web sites, usually corporate type web sites, but Java on the web is dangerously subject to attack. Your browser should not permit Java to run unless absolutely necessary.
 
It should be installed at all only if you need it to run programs on your machine that are not viewed in a browser.



When in doubt, mumble
January 12, 2020, 09:44 AM
cyberiad
Unless you need version 9 for some specific reason I'd install version 11 from AdoptOpenJDK because it's the most recent long term support release. In my opinion, there is no reason to install any version provided by Oracle, as noted earlier.