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 6828861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:25:57+00:00 2026-05-26T22:25:57+00:00

As a Java developer who switches between *NIX systems (OS X, Ubuntu, …), although

  • 0

As a Java developer who switches between *NIX systems (OS X, Ubuntu, …), although I can always “get” my JDK up and running, it seems that there is no clear definition of JAVA_HOME in many packages which require JAVA_HOME to be set :

For example

  • MAVEN : “JAVA_HOME, refers to your JDK directory”
  • HADOOP : “JAVA_HOME, which specifies the path to the Java 1.5.x installation”
  • SUN : “JAVA_HOME is the directory that contains the JRE”

I thus have 2 questions regarding this matter (any insights would be welcome, also, but concretely, I have these two questions) :

1) Does mac os X java installation copy the target from the “JavaVM.frameworks” directory into usr/bin ?

2) What is the “definition” of JAVA_HOME ? Clearly, we cannot define JAVA_HOME as simply “the place where java is installed”, because this definition is ambiguous, since java can exist both in a HOME location (i.e. in /System/Library/Fraemworks/…..) , or alternatively, it may also be directly in the /usr/bin directory ?

MY THOUGHTS

I believe that JAVA_HOME is ACTUALLY meant to refer to more than just a binary “java” program. JAVA_HOME probably is meant to refer to the location of a set of java related directories AND binaries… But still, I am not really clear what this comprises, and wether or not this definition which I am proposing is precise enough to be useful.

  • 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-26T22:25:58+00:00Added an answer on May 26, 2026 at 10:25 pm

    There is no “true” definition of JAVA_HOME. This variable is not used by the Java Runtime Environment, and has no specification as part of the Java platform.

    It is merely a convention that is used by some applications that run on top of the Java platform. Since there’s no standard, each application is free to make its own rules about the directory to which this variable should refer; you should read the application’s documentation to find out what it needs.

    That said, every application I’ve found that uses this variable will work if you set it to the top level directory of a JDK installation (not the JRE within the JDK, but the JDK itself). This directory should contain “bin” and “lib” subdirectories that contain the java executable and the runtime libraries, respectively.

    Some applications will also work if you point it at a JRE, but if it needs development tools like javac, it will fail.

    Usually, I specify JAVA_HOME on the command line when I run a tool than needs it, because I work with multiple versions of Java, like this:

    JAVA_HOME=/usr/local/jdk1.6.0_29 ant
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a java developer who used Netbeans 6.8 previously and running all of the
As a Java developer who is reading Apple's Objective-C 2.0 documentation: I wonder what
I'm a Java developer who's trying to move into C#, and I'm trying to
I'm a Java developer who has turned to the dark side over the last
I am an experienced Java developer who is trying to learn web development with
I'm a .NET and Java developer who is relatively new to threading. I'd like
Quick background I'm a Java developer who's been playing around with C++ in my
I am a Java developer who is beginning to grasp the full power of
Possible Duplicate: Protected methods in objective-c I am a Java developer who is starting
We have a developer who is in the habit of committing non-java files (xsd,

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.