Embedded Error Unable To Find A Javac Compiler
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About unable to find a javac compiler com.sun.tools.javac.main is not on the classpath. ant Us Learn more about Stack Overflow the company Business Learn more about hiring
Unable To Find A Javac Compiler Ubuntu
developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the
Unable To Find A Javac Compiler Eclipse Java_home
Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up maven build failed: Unable to locate
Unable To Find A Javac Compiler Linux
the Javac Compiler in: jre or jdk issue up vote 98 down vote favorite 20 I have my JAVA_HOME set to C:\Program Files (x86)\Java\jdk1.6.0_18 After I run maven install I get this message from eclipse: Reason: Unable to locate the Javac Compiler in: C:\Program Files (x86)\Java\jre6\..\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 unable to find javac compiler windows you can change the location of your Java installation by setting the JAVA_HOME environment variable. I'm certain that this is the tricky part Please ensure you are using JDK 1.4 or above and not a JRE When I run configuration its set to JRE6, how do I change it to JDK 1.6 which I have already installed EDIT I even tried to modify the plugin :
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this unable to locate the javac compiler in site About Us Learn more about Stack Overflow the company Business Learn more unable to locate the javac compiler in eclipse maven about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x unable to locate the javac compiler in tools.jar maven Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Ant unable http://stackoverflow.com/questions/2222560/maven-build-failed-unable-to-locate-the-javac-compiler-in-jre-or-jdk-issue to find javac, JAVA_HOME won't set on Ubuntu up vote 41 down vote favorite 14 I have an Android Project called Hello on my Ubuntu 10.04 i386 Server (headless). It contains all things an Android project folder should have. I first build the project in bash while in the Project folder using this synax: ./android create project --target 5 --name HelloCompile --path ../../Projects/Hello --activity http://stackoverflow.com/questions/5736641/ant-unable-to-find-javac-java-home-wont-set-on-ubuntu HelloActivity --package com.code.Hello then I try to build the .apk with ant like so: ant debug I get this error: BUILD FAILED /home/myusername/www/sdk/tools/ant/main_rules.xml:384: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk/jre" which is very confusing to me because just before I run ant debug I run: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk which I know works because printenv in bash shell returns: JAVA_HOME=/usr/lib/jvm/java-6-openjdk to compound this, adding this line to my /etc/environment file export JAVA_HOME=/usr/lib/jvm/java-6-openjdk does not fix the problem either - I get the same error. Nothing I do changes the fact Ubunut still thinks /usr/lib/jvm/java-6-openjdk/jre is the JAVA_HOME. What is going wrong? I've been at this for too many hours. java android linux ant ubuntu share|improve this question asked Apr 20 '11 at 21:05 lollercoaster 2,063113983 add a comment| 4 Answers 4 active oldest votes up vote 72 down vote accepted Did you install the JDK? When you install Ubuntu only the JRE is installed as part of the default packages. Unfortunately Ubuntu's package management names the directory as if the JRE were
- 15th for workshops, presentations and all things Jenkins Learn more Export Tools JenkinsJENKINS-3937Maven antrun classpath goes https://issues.jenkins-ci.org/browse/JENKINS-3937 wrong inside hudsonLog In ExportXMLWordPrintable Details Type: Bug Status: Closed Priority: Blocker Resolution: Incomplete Component/s: maven-plugin Labels: None Environment: Platform: Sun, OS: Linux Similar Issues: Show Description I have a maven project that uses the maven-antrun-plugin to test some samples that come with a build.xml file. It all unable to works fine from command line. In hudson, it fails, claiming that it can't find the compiler, due to a bad JAVA_HOME. A moderate level of googling failed to reveal a solution to me, and it seems to me that from first principles what works at command level should unable to find also work in hudson. [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: /home/hudson/jobs/etrog/workspace/etrog/lucene2.2/target/rlp-bl-lucene2.2-0.9-SNAPSHOT-all.dir/rlp-bl-lucene2.2-0.9-SNAPSHOT/samples/simple/build.xml:19: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3 minutes 49 seconds [INFO] Finished at: Fri Jun 26 09:37:04 EDT 2009 [INFO] Final Memory: 50M/81M AttachmentsActivity All Comments History Activity Hide Permalink Kohsuke Kawaguchi added a comment - 2009/Jul/09 12:13 PM I believe this is the standard behavior of Maven antrun plugin. See http://johnjianfang.blogspot.com/2009/03/maven-antrun-plugin.html for another reference. Show Kohsuke Kawaguchi added a comment - 2009/Jul/09 12:13 PM I believe this is the standard behavior of Maven antrun plugin. See http://johnjianfang.blogspot.com/2009/03/maven-antrun-plugin.html for another reference. People Assignee: Unassigned Repo