drc
drc

Reputation: 1915

Can't install Apache Maven following instructions

I'm a complete novice at using the terminal. What I've trying to do is install Apache Maven, following these instructions at this website:

http://maven.apache.org/download.cgi

I've included the instructions below, a screenshot showing the folder I've unzipped, and the commands I entered into the terminal.

But it doesn't seem to be working

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 168

Answers (1)

rimero
rimero

Reputation: 2383

Typically JAVA_HOME is not installed in /usr/java by default like on some other UNIX/Linux such as Fedora for example.

On OSX, your Java installation is typically inside a sub-folder of /System/Library/Java/JavaVirtualMachines/.

Try setting JAVA_HOME like this:

export JAVA_HOME=$(/usr/libexec/java_home)

Double-check your JAVA_HOME location

echo $JAVA_HOME

Upvotes: 2

Related Questions