Java Jdk For Mac El Capitan

It is worth to mention, Apple still providing JDK6 for this newest release (El Capitan), Apple recommend user to use the latest Java from java.com. The 'More Info.' Will actually bring you to java.com to download the latest Java, this is the recommended Java. ผู้ใช้ Mac บางรายต้องติดตั้ง Java ใน OS X El Capitan บางทีอาจใช้ร่วมกันได้กับเว็บไซต์หรือแอพพลิเคชันหรือเนื่องจากผู้พัฒนา java แต่แอ็ปเปิ้ลมีความเข้มงวด.

  1. Java Jdk For Mac El Capitan Download
  2. Java Jdk For Mac El Capitan 2
  3. Jdk For Mac Os

So I installed the beta of JDK 8 a while ago to look at some of the examples. I thought for sure by now, it’s easy to change between versions.

Doing some Play development with IntelliJ. For some reason, IntelliJ is compiling with 8 even though:

  • I have the compiler set in Preferences to use 1.6
  • Supposedly it’s using SBT through external build, but sbt from the command line works
  • JAVA_HOME is pointing to JDK 6.

If I go to the Java Preferences page, it does show 8 installed, but there is no option to uninstall it and it doesn’t see any of the other versions.

When I do which java, it tells me /usr/bin/java and I do /usr/bin/java -version and it returns 1.6.

Note: with a little fiddling, you can use IntelliJ and JDK7, see here.

Answers:

I was able to unistall jdk 8 in mavericks successfully doing the following steps:

Run this command to just remove the JDK

Run these commands if you want to remove plugins

Answers:
Jdk
Questions:

Managing Java versions on Mac OSX is a nightmare. I recently switched over to using JDK 1.7, deleting JDK 6 from my MacBook entirely (I also had traces of JDK 5 – this laptop has been updated a few times).

Here’s what I did to move to JDK 7.

1) download the latest from Oracle (http://www.oracle.com/technetwork/java/javase/downloads/index.html) and install it.

2) Remove (using rm – if you’ve got backups, you can revert if you make a mistake) all the JDK6 and JRE6 files.

At this stage, you should see:

(and nothing else)

3) In the folder /Library/Java/Extensions/, you’ll need to remove all the old jar files, the ones that correspond to other releases of Java. If you don’t, you’ll get the infamous message about the wrong version of tools.jar (see Builds failing after upgrading to Java7, Missing Tools.jar and bad class versions). It is not enough to rename the jar files, because Java will open every jar in that folder – I moved mine into a sub-directory. It’s safe to remove them once you know everything else works.

I haven’t found I need to set JAVA_HOME for simple things.

Note: I just tried running IntelliJ and it will not start unless you have Apple’s JDK 6 installed (see http://youtrack.jetbrains.com/issue/IDEA-93710). Same is true for Eclipse. Netbeans works fine.

Answers:

Use /usr/libexec/java_home ; I found these alias and function to be pretty useful in my ~/.profile:

Answers:

Here is the official document about uninstalling the JDK.

Answers:

If you have installed jdk8 on your Mac but now you want to remove it, just run below command “sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk”

Answers:

I nuked everything Java, JDK, and oracle. I was running Java 8 on OSX El Capitan

Other answers were missing tons of stuff. This answer covers a lot more bases.

Good bye, shovelware.

Answers:
Questions:

If you uninstall all the files but it still fails, use this line:

Answers:
Questions:

This worked perfectly for me:

Tags: java

Since I upgraded my Mac to OS X El Capitan (version 10.11.2) I am having problems with the R-package rJava. From what I understood, eventually, it is not a problem of rJava or R or RStudio in the first place, but newer versions of Mac OS X do not play well with the latest versions of Oracle’s Java (jdk). Furthermore, some new security features in Mac OS X prevent that environment path settings are passed along to applications like RStudio.

In what follows, I listed the steps that solved for me the problem that the package rJava could not be loaded from within RStudio under Mac OS X El Capitan (version 10.11.2).

Problem statement

Unfortunately, the package rJava does not just fail to load, but the R GUI for Mac terminates instantly and in RStudio the R-session gets closed. Both effects are pretty annoying! See the screen shot below on how that might look like.

Some research

After searching the web, the details of the problem are still not clear to me. But it appears that OS X has problems recognizing newer versions Oracle’s Java. OS X seams to be looking for a legacy version 6 of Apple’s own build of Java. As shown in the next section one solution seams to be the installation of Apple’s legacy version 6 of Java and a newer version (e.g. 1.8.0_66) of Oracle’s Java at the same time.

The solution

The post available at https://github.com/snowflakedb/dplyr-snowflakedb/wiki/Configuring-R-rJava-RJDBC-on-Mac-OS-X solved my problem with rJava on Mac OS X 10.11.2.

Java 6

I already had XCode command line tools installed, so I started at section Java 6. I downloaded the legacy Java 6 runtime from https://support.apple.com/kb/DL1572?locale=de_DE and installed the downloaded .dmg file.

Java 8

Since I had already installed the latest version of Oracle’s jdk from http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, I skipped the step.

The output of java_home on my machine looks as follows

Please note the 1.7 version are really not needed here.

R for OS X

The latest version of R was already running, so I skipped this step. The check with javareconf gave the following result.

rJava

Java Jdk For Mac El Capitan Download

As the version of rJava from CRAN did not work, I took the latest version from rforge and installed that one.

Jdk

A quick check whether rJava can be loaded, is done as follows

Java Jdk For Mac El Capitan 2

RStudio

Running the above check on the RStudio console still gives the following error

Jdk For Mac Os

For some reason which might be connected to a new security feature of Mac OS X, the file libjvm.dylib cannot be found. Loading this library explicitly, as was described in http://stackoverflow.com/questions/30738974/rjava-load-error-in-rstudio-r-after-upgrading-to-osx-yosemite, finally solves the problem.