SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Java on MacOS – need advice
Go
New
Find
Notify
Tools
Reply
  
Java on MacOS – need advice Login/Join 
Baroque Bloke
Picture of Pipe Smoker
posted
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
 
Posts: 9757 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
Member
Picture of cjevans
posted Hide Post
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.
 
Posts: 1886 | Location: Altona Beach | Registered: February 20, 2012Reply With QuoteReport This Post
Member
Picture of fpuhan
posted Hide Post
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
 
Posts: 2857 | Location: Peoples Republic of North Virginia | Registered: December 04, 2015Reply With QuoteReport This Post
Baroque Bloke
Picture of Pipe Smoker
posted Hide Post
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
 
Posts: 9757 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
Baroque Bloke
Picture of Pipe Smoker
posted Hide Post
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
 
Posts: 9757 | Location: San Diego | Registered: July 26, 2014Reply With QuoteReport This Post
member
Picture of henryaz
posted Hide Post
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
 
Posts: 10887 | Location: South Congress AZ | Registered: May 27, 2006Reply With QuoteReport This Post
Nature does not hurry, yet everything is accomplished
posted Hide Post
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.
 
Posts: 4091 | Location: NC | Registered: December 20, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

SIGforum.com    Main Page  Hop To Forum Categories  The Lounge    Java on MacOS – need advice

© SIGforum 2024