I think I mixed something up. Yesterday everything worked fine. Today you have a lot of problems.
1. I ran this command
echo $JAVA_HOME /usr/lib/jvm/java-7-openjdk-amd64/
then
mvn --version Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
It worked fine yesterday (returning the maven version, 3.0.4, I think). Now this has begun to create problems. what to do?
Also after launch
$ java --version Unrecognized option: --version Failed to create Java virtual machine.
here is the contents of my .bashrc file and I have nothing in the / etc / environment file.
PATH=$PATH:$HOME/.rvm/ JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ export JAVA_HOME PATH=$PATH:$JAVA_HOME export PATH
and this is in my / etc / profile
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/ PATH=$PATH:$HOME:$JAVA_HOME/bin export JAVA_HOME export PATH
- Also let me know how I can set MAVEN_HOME in it.
Any help would be greatly appreciated. Thanks:)
source share