Languages
[Edit]
EN

Maven / mvn - change used java version

6 points
Created by:
Tyreese-Aguirre
379

In this short article we would like to show how to change Java version used by Maven to other one.

Solution: change JAVA_HOME variable value to proper Java path.

Practical example

Edit

The example shows how to change JAVA_HOME system variable value under Windows 10.

1. Before change:

2. Setting new JAVA_HOME system variable value:

JAVA_HOME system variable value under Windows 10.
JAVA_HOME system variable value under Windows 10.

3. Terminal re-run or operating system restart.

4. After change:

Now Java 1.8 is used with mvn.

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Maven

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join