Does Maven require JDK

I am new to Maven, Java ... when I do mvn clean package in a Java project, it creates a JAR file for me.

But still, how can I find out if I have a JDK or is it another JRE?

I'm on OSX 10.8

+4
source share
2 answers

Maven needs a JDK, not a JRE.

Do this for more information on which version of Java you installed:

 echo $JAVA_HOME echo $PATH which java java -version mvn --version 
+4
source

Maven requires a JDK to compile.

To check if you have a JDK compiler, you can type: javac in the terminal.

+1
source

All Articles