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
  • 3
  • 2
LVL 15

Expert Comment

Comment Utility
Systemwide vs user account wide.
It's obvious isn't it?

Author Comment

Comment Utility
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 15

Accepted Solution

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

Author Comment

Comment Utility
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 15

Expert Comment

Comment Utility
ask microsoft or post in windows forum.
I use a real operating system.

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countHi2 challenge 7 44
strCopies  challenge 17 73
DO we need Java installed on a Windows PC and WHY ? 13 77
maven project error 5 17
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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 …

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now