maven java path setting

Posted on 2016-09-23
Last Modified: 2016-10-03

While setting up java and maven paths from computer-->properties--->advanced variables

why we have to give
JAVA_HOME and M2_HOME  in user variables(till root just before bin)

appending path till bin under system variables.

my main question is how user variables and system variables are different. which one to use when and how?

please advise
Question by:gudii9
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 16

Expert Comment

ID: 41813719
Systemwide vs user account wide.
It's obvious isn't it?

Author Comment

ID: 41813876
can not we we do both JAVE_HOME and path entry at user level or at system level itself(so that all users taken care) rather than doing one at user(ie JAVA_HOME which is top one) other(appending path at system variables at bottom...i feel weird to see users variables at top and system variables at bottom..i feel otherway like system variables at top and user variables at bottom more meaningful.)
Please advise?
LVL 16

Accepted Solution

gurpsbassi earned 500 total points
ID: 41814448
whether its a system variable or a user variable doesn't matter. As long as JAVA_HOME is available.

Author Comment

ID: 41826344
whether its a system variable or a user variable doesn't matter.
why we have two if both are same? i am bit unclear here.please advise.
LVL 16

Expert Comment

ID: 41826368
ask microsoft or post in windows forum.
I use a real operating system.

Featured Post

A new era in Cloud training has arrived.

A day that will go down in Cloud history.. But are you ready for it? Will you accept this Cloud challenge?

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

623 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