how to let maven recognize JAVA_HOME variable value?

i have installed maven and although i put the JAVA_HOME variable value, maven continues to tell me this error :

enter image description here

i added the java_home variable value like this :

enter image description here

maven defaults to Java 1.5 even though JAVA_HOME is set to JDK11

I use JDK 11 and my application has about 20 projects. Now, I want my maven to choose JAVA_HOME instead of changing the entire pom.xml file with maven-compiler-plugin or properties.
I have defined JAVA_HOME on JDK 11
Release mvn -v

OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 19:21:28+0530)
Maven home: /home/krawler/apache-maven-3.0.5
Java version: 11.0.4, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-11-openjdk-
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.1.3.el7.x86_64", arch: "amd64", family: "unix"

But when I run MVN own install I receive an error below:

(ERROR) Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mavenKwlCommonLibs: Compilation failure: Compilation failure:
(ERROR) error: Source option 5 is no longer supported. Use 6 or later.
(ERROR) error: Target option 1.5 is no longer supported. Use 1.6 or later.

javascript – having trouble setting up java_home in Ubuntu

Hi, I'm trying to set an environment for native development, I've followed all the steps in the Getting Started Guide, I'm trying to run the project on a Genymotion emulator. When I try to start the project, an error message appears stating that I did not do it. I did not define the path java_home, I looked at a tutorial on how to do it, I think my problem is that I do not configure it correctly … it's the path of java exe files tutorials:

sudo update-alternatives –install "/ usr / bin / java" "java" "/usr/lib/java/jdk1.7.0_65/bin/java" 1
sudo update-alternatives –install "/ usr / bin / javac" "javac" "/usr/lib/java/jdk1.7.0_65/bin/javac" 1
sudo update-alternatives –install "/ usr / bin / javaws" "javaws" "/usr/lib/java/jdk1.7.0_65/bin/javaws"

the path to these files on my computer is as follows:


so I wonder what to change. ….. this is a screenshot of ls "bin"!

java – config sdk path JAVA_HOME for cordova

Battery Exchange Network

The Stack Exchange network includes 175 question-and-answer communities, including Stack Overflow, the largest and most reliable online community for developers.

Visit Stack Exchange

Argument of the javahome installation program (PSSAV)

Hello good night
I have to install PSSAV for a collegial exercise. However, it displays the dialog box below:
insert the description of the image here

It turns out that I have version 8 of JDK. The information that I can validate the location of the JDk was not very clear to me. If anyone can help me, thank you.