Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Maven need JDK

Tags:

maven

I am new to Maven, Java ...when I do a mvn clean package on a Java project, it does create the JAR file for me.

But still how can I know if I have JDK or is it still JRE?

I am on OSX 10.8

like image 720
DarkNightFan Avatar asked Mar 28 '13 14:03

DarkNightFan


1 Answers

Maven needs a JDK, and not a JRE.

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

echo $JAVA_HOME
echo $PATH
which java
java -version
mvn --version
like image 193
carlspring Avatar answered Oct 28 '22 19:10

carlspring