Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


switch to lower version of java on mac

Posted on 2014-12-31
Medium Priority
Last Modified: 2015-01-01
I'm running 10.9.5

my java version is java version "1.8.0_25"

how to switch my JRE to 1.7

I have 2 direcories in /Library/Java/VirtualMAchines:

1. jdk1.7.0_67   - no Contents directory with bin

2. jdk1.8.0_25

   Contents  with bin etc
Question by:sniger
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 30

Accepted Solution

serialband earned 2000 total points
ID: 40525798
You'll have to download jdk7 or jre7 separately and reinstall it, since it looks like your folder was emptied out.  It just didn't delete the stub because there were demos and samples that weren't part of the uninstaller in those folders.  You can have multiple Java installations at the same time.  You just have to set the environment variables correctly for each App or process.  

The simplest thing to do is to install the version you like to use most 2nd.  It should configure the system wide environment settings last.  You can then specify the individual environment settings for the few apps that need the other version.

Author Comment

ID: 40525824
I installed jdk 1.7
And it went into /Library/Internet Plugins

Why ???
Now netbeans is complaining that it cannot
Find jdk although I redifined jdk-home
Directory to point to /library/Internet plugins
LVL 30

Expert Comment

ID: 40525865
That doesn't sound like you're pointing to JDK.  Internet plugins is for JRE browser plugins.  I currently do not have JDK installed, just JRE, but they should normally be under /Library/Java/JavaVirtualMachines/

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 40525897
so you are saying that even though java control panel is showing :

Platform 1.7   path : /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java  

java 1.7 has not been installed ? I mean java 1.7 jdk

Author Comment

ID: 40525919
i guess my issue is, where is jdk 1.7, i went through the whole installation process
LVL 30

Expert Comment

ID: 40526217
That java control just shows where your internet plugin is.  The JDK should be somewhere in:


Author Comment

ID: 40526221
Do you know why it has not installed ?
From what I've seen many people have this problem
LVL 86

Expert Comment

ID: 40526646
Now netbeans is complaining that it cannot
Find jdk although I redifined jdk-home
Directory to point to /library/Internet plugins

It would be JAVA_HOME that Netbeans is interested in

Author Closing Comment

ID: 40527100
ok, thanks, i was just installing jre, that's why the system could not find jdk 1.7

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question