Solved

switch to lower version of java on mac

Posted on 2014-12-31
9
163 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 28

Accepted Solution

by:
serialband earned 500 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.
0
 

Author Comment

by:sniger
ID: 40525824
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 28

Expert Comment

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

http://java.dzone.com/articles/java-findingsetting
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:sniger
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
0
 

Author Comment

by:sniger
ID: 40525919
i guess my issue is, where is jdk 1.7, i went through the whole installation process
0
 
LVL 28

Expert Comment

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

/Library/Java/JavaVirtualMachines/
0
 

Author Comment

by:sniger
ID: 40526221
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
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
0
 

Author Closing Comment

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

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How Resolve Word 2011 Office-Database Error in Mac OS X 10 61
MySqlDump not dumping triggers 1 31
maven module vs maven project 3 23
Chrome and Firefox Java 5 34
The /etc/authorization file in Mac OS X 10.x can be used to control access to the various panes of the System Preferences amongst other things. It’s used by some of us Mac Sys Admin’s to give Standard Users access to System Prefs panes that only adm…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

803 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