Ubuntu Forums Archive Viewer

Error with Maven var in environment

Archived thread 2257058 from Ubuntu/Debian BASED. Markdown source: UbuntuDebian_BASED/thread_2257058_Error_with_Maven_var_in_environment.md

Original URL About this archive
#1

I Have a problem with Apache Maven in EOS Luna, when I run:

mvn -v 
Error: Could not find or load the main class org.codehaus.plexus.classworlds.launcher.Launcher

But if I run the following first: ``` source /etc/environment


Maven works. 
Why /etc/environment is not auto-loaded?

The content of environment file is:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/apache-maven-3.2.3/bin/" JAVA_HOME="/usr/lib/jvm/java-8-oracle/" M2_HOME=”/usr/local/apache-maven/apache-maven-3.2.3″ MAVEN_HOME=”/usr/local/apache-maven/apache-maven-3.2.3″ M2=”/usr/local/apache-maven/apache-maven-3.2.3/bin”