because it isn't looking in the right place. I have more than one jvm installed.
[code] $mvn install Unable to locate the Javac Compiler in: /usr/lib/jvm/java-6-openjdk/jre/../lib/tools.jar Please ensure you are using JDK 1.4 or above and not a JRE (the com.sun.tools.javac.Main class is required). In most cases you can change the location of your Java installation by setting the JAVA_HOME environment variable. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Sun Dec 21 01:43:23 PST 2008 [INFO] Final Memory: 10M/24M [INFO] ----------------------------------------------- $ echo $JAVA_HOME /usr/lib/jvm/java-6-sun [/code] Not sure why it's looking in the wrong place. I am running mvn on Ubuntu Linux and yes, the tools jar does live under /usr/lib/jvm/java-6-sun. Any help would be appreciated. Thanks. -- View this message in context: http://www.nabble.com/-Newbie--Maven-can%27t-find-javac-tp21113688p21113688.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
