Solved

switch to lower version of java on mac

Posted on 2014-12-31
9
148 Views
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
     demo
     sample      
 

2. jdk1.8.0_25

   Contents  with bin etc
0
Comment
Question by:sniger
  • 5
  • 3
9 Comments
 
LVL 27

Accepted Solution

by:
serialband earned 500 total points
Comment Utility
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.
0
 

Author Comment

by:sniger
Comment Utility
Thanks
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
......
0
 
LVL 27

Expert Comment

by:serialband
Comment Utility
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/

http://java.dzone.com/articles/java-findingsetting
0
 

Author Comment

by:sniger
Comment Utility
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
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:sniger
Comment Utility
i guess my issue is, where is jdk 1.7, i went through the whole installation process
0
 
LVL 27

Expert Comment

by:serialband
Comment Utility
That java control just shows where your internet plugin is.  The JDK should be somewhere in:

/Library/Java/JavaVirtualMachines/
0
 

Author Comment

by:sniger
Comment Utility
Do you know why it has not installed ?
From what I've seen many people have this problem
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
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
0
 

Author Closing Comment

by:sniger
Comment Utility
ok, thanks, i was just installing jre, that's why the system could not find jdk 1.7
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Suggested Solutions

In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

728 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now