Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7218959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T21:33:22+00:00 2026-05-28T21:33:22+00:00

I installed iplots and rjava packages. When I do this library(iplots), I get the

  • 0

I installed iplots and rjava packages. When I do this library(iplots), I get the following error. I do have JDK installed on my pc.

Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
call: fun(libname, pkgname)
error: JAVA_HOME cannot be determined from the Registry

Error: package ‘rJava’ could not be loaded

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T21:33:23+00:00Added an answer on May 28, 2026 at 9:33 pm

    The error is telling you that there is no entry in your Registry that tells R where Java is located on your machine. Either your registry is corrupt, but more likely you haven’t installed Java. You can install either the Java Runtime Environment or the Java Development Kit.

    (You can download Java here.)

    If you installed Java, try reinstalling it. This should put the entries back in your Registry.

    If that doesn’t work, you can start looking at exactly where R is looking for your Registry entries. The function that rJava uses to find Java is in the rJava:::.onLoad function. Within that function there is a subfunction called find.java. I copy the contents here:

        find.java <- function() {
            for (root in c("HLM", "HCU")) for (key in c("Software\\JavaSoft\\Java Runtime Environment", 
                "Software\\JavaSoft\\Java Development Kit")) {
                hive <- try(utils::readRegistry(key, root, 2), 
                  silent = TRUE)
                if (!inherits(hive, "try-error")) 
                  return(hive)
            }
            hive
        }
    

    Copy and paste this into your R window, and then run it find.java(). rJava is looking for an entry for JavaHome. If that isn’t listed, then it is missing from your registry.

    You could also manually set the directory of your Java location by setting it before loading the library:

    Sys.setenv(JAVA_HOME='C:\\Your\\Java\\Directory')
    library(rJava)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed the latest stable xampp package, and received the following error page when
I installed subclipse in eclipse, but I get an error message Expected format '3'
I installed the playframework fbconnect module (version 0.6). I keep getting the following error.
installed ejabberd using synaptic package manager on Ubuntu 10.04 without any error. sudo dpkg-reconfigure
Installed Visual Studio Web Developer 2010 Express from the ISO available from this page:
Installed SlikSvn on Window 2008 server Created Repository at c:\dia\svn\repos running this windows service
Installed Google App Engine 1.2.5 and Web Toolkit 1.7.1 . However I still get
Installed a captcha on my blog, been good up until now. There have recently
I installed GitHub on mac but I don't have installed git on terminal. When
I installed java from a binary package (bin format). Now I want to know

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.