Software⏱️ 3 min read📅 2026-06-04

How to Fix: rJava load error in RStudio/R after "upgrading" to OSX Yosemite

RStudio/R error after upgrading to OSX Yosemite

Quick Answer: Check if Java is installed and up-to-date, try reinstalling rJava or updating RStudio.

RStudio users on OSX Yosemite have encountered an error after upgrading from R 3.1.3 to 3.2, where they receive a pop-up message requiring Java 6 installation and experience crashes when loading rJava or packages that depend on it.

This issue is frustrating for users who rely on rJava for their work, as it can significantly impact productivity and workflow.

🛑 Root Causes of the Error

  • The primary reason for this error lies in the incompatibility between R 3.2 and rJava due to changes made in the Java version. Specifically, RStudio relies on a specific version of rJava that is no longer compatible with Java 6.
  • Another possible cause could be related to the upgrade process itself, where some system files or configurations might have been altered, leading to the error.

🛠️ Step-by-Step Verified Fixes

Installing and Configuring rJava Manually

  1. Step 1: Step 1: Download the rJava package from CRAN (https://cran.r-project.org/web/packages/rjava/index.html) and install it using R.
  2. Step 2: Use the command `install.packages('rJava')` in R to download and install the rJava package. This step may take some time, so be patient.

Upgrading Java Version

  1. Step 1: Step 1: Download the latest version of Java from Oracle's official website (https://www.oracle.com/java/technologies/javase-downloads.html).

🎯 Final Words

To resolve this issue, you can try installing and configuring rJava manually or upgrading your Java version. If you encounter any further issues, consider reaching out to the RStudio support team for assistance.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions