Ant Build Error Com.sun.tools.javac.main Is Not On The Classpath
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 Us Learn more about Stack Overflow the company Business Learn more about unable to find a javac compiler com.sun.tools.javac.main is not on the classpath. ant hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask com.sun.tools.javac.main jar Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. unable to find a javac compiler centos Join them; it only takes a minute: Sign up Ant “JAVA_HOME does not point to the JDK” - but it does up vote 11 down vote favorite 3 I cannot run my Ant build.xml since I updated to java
Java_home Does Not Point To The Jdk Android Studio
1.7.0_52 (or there about). I have been running it for years through Eclipse locally on my Windows 7 laptop - but with this latest jave jdk update somethings different (?). BUILD FAILED C:\workspace\WaterAspectsModel3\build.xml:329: 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 "D:\Morten\Java\jdk1.7.0_52" This is my jdk! So JAVA_HOME is pointing to a jdk (as is also clear from the error message). I the archive tools.jar which is referenced by the classpath does not exist have my JAVA_HOME with bin folder in my path as always. I've configured Eclipse - external tools configuration - with a JRE pointing to the same D:\Morten\Java\jdk1.7.0_52 (through "Separate JRE" setting). And I've tried a number of other configurations - all without luck. I've been reading the tonnes of answers on lists here and other places and think I've tried all suggestions. Most seem to be cases where JAVA_HOME actually points to a jre and just needs to be corrected to jdk or there's a ";" in the path or something like that. None of these seem to apply in my case. Any suggestions? eclipse ant java share|improve this question edited Mar 27 at 4:12 Undo♦ 18.3k147298 asked Feb 26 '13 at 20:06 Morten Grum 1951210 Do you have your ANT_HOME environment variable set? Is it also in PATH? That is system path. –Sotirios Delimanolis Feb 26 '13 at 20:15 How about printouts for java -version and javac -version from your lovely cmd.exe? And also what does JAVA_HOME tell you there? –sjas Feb 26 '13 at 20:20 Try ant -version as well. –Sotirios Delimanolis Feb 26 '13 at 20:21 Try the following command in a terminal: "%JAVA_HOME%\bin\javac". If the command does not exist that proves you don't have a JDK installed. –Mark O'Connor Feb 26 '13 at 20:51 add a comment| 5 Answers 5 ac
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 ant java_home About Us Learn more about Stack Overflow the company Business Learn more about
Eclipse Set Java_home
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join
Ant Java_home Is Not Defined Correctly
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 Unable to find a http://stackoverflow.com/questions/15098258/ant-java-home-does-not-point-to-the-jdk-but-it-does javac compiler com.sun.tools.javac.Main is not on the classpath error up vote 2 down vote favorite 1 I am trying to run java application and I am getting following error, 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 I have gone through many SO questions and found solution is JAVA_HOME should be point to http://stackoverflow.com/questions/29668849/unable-to-find-a-javac-compiler-com-sun-tools-javac-main-is-not-on-the-classpath JDK, not JRE. Then I have tried to print JAVA_HOME in command prompt, I had set this JAVA_HOME from my computer->properties->env variables -> system vars as below, I had also added new variable in eclipse using preferences as, And finally I am still getting the same error. Whats wrong with JAVA_HOME ? Update : In eclipse-preferences-installed jres there is only one entry is present and which is jdk and selected, And under project properties java build path-libraries there is JRE System Liberary [jdk1.8.0_31] is used. Update 1 : C:\Program Files\Java\jdk1.8.0_31 have folder named jre. Is that jre folder causing this issue ? Can I remove this folder ? Is there is any way to add only jdk liberary in project ? java eclipse classpath share|improve this question edited Apr 16 '15 at 13:27 asked Apr 16 '15 at 8:06 fledgling 1,79611943 Pleas confirm whether you started a new console after setting variables or not ? If it was a new console than to me everything else looks clean and correct, I suggest you uninstall and reinstall java ? Sometimes installation errors are there. Use .msi or .exe file to install rather than
Fix Perhaps JAVA HOME does not point to the JDK studywithdemo SubscribeSubscribedUnsubscribe338338 Loading... Loading... Working... Add to Want to watch this again later? Sign in to add this video to a playlist. Sign in Share More Report https://www.youtube.com/watch?v=wTgI-b1NDrA Need to report the video? Sign in to report inappropriate content. Sign in Statistics 2,754 views 12 Like this video? Sign in to make your opinion count. Sign in 13 1 Don't like https://forum.processing.org/topic/com-sun-tools-javac-main-is-not-on-the-classpath this video? Sign in to make your opinion count. Sign in 2 Loading... Loading... Loading... Rating is available when the video has been rented. This feature is not available right now. Please is not try again later. Published on Apr 25, 2015Watch this video if you get below message in your eclipse IDE com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK.It is currently set to "C:\Program Files\Java\jre1.8.0_25"While doing build with ant in eclipse i got this error later i fixed this and make the video. Category Education License Standard YouTube License Show more Show less com.sun.tools.javac.main is not Loading... Advertisement Autoplay When autoplay is enabled, a suggested video will automatically play next. Up next Tutorial #0- Setup Java SDK + JAVA HOME (Environment Variables) + Eclipse - Duration: 8:43. Nguyễn Văn Hải 4,339 views 8:43 How to Install Java JDK/JRE and Set Environment Variables - Programmatic and Manual (Beginner) - Duration: 17:55. CodePerfect 202,759 views 17:55 [TUTORIAL] Corrigindo erro -com.sun.tools.javac.Main is not on the classpath - Duration: 3:36. Allan Alcantara 699 views 3:36 Set JAVA_HOME and path for JDK on Linux - Duration: 2:06. Andr.oid Eric 17,725 views 2:06 Java Programming - Duration: 34:30. Derek Banas 1,853,104 views 34:30 Installing the Java JDK Software and Setting JAVA_HOME on Windows - Duration: 8:20. ProgrammingKnowledge 2,321 views 8:20 Java(JDK) fix : Android Studio Error | No JVM installation found | Set Environment Variables - Duration: 7:31. Prabhat Chandra 639 views 7:31 Resolved Error JVM After Install Android Studio - Duration: 5:07. OpO Dab 261 views 5:07 [TUTORIAL] Corrigindo erro ao compilar -Unable to find a javac compiler;- - Duration: 6:04. Allan Alcantara 1,703 views 6:04 How to solve Environment variable java_home doesnot point to a valid JVM installation - Duration: 1:47. Techdid Techjetz 1,468 views 1
Tool DevelopmentEvents and OpportunitiesGeneral Discussion Sub forum : Move this topic Cancel Library and Tool Development clankill3r com.sun.tools.javac.Main is not on the classpath. in Library and Tool Development • 1 year ago I moved from my mac to a pc and i want to be able to compile a library. I get this error: BUILD FAILED C:\Documents and Settings\Sjoerd\workspace\PPath\resources\build.xml:107: The following error occurred while executing this line: C:\Documents and Settings\Sjoerd\workspace\PPath\resources\build.xml:141: 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 "C:\Program Files\Java\jre6" 107