Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Build Getting Failed

 
Irfan Junedi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am getting the following problem when i am trying to build the application..


BUILD FAILED
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"

Hope To get the Solution Soon......

Thanks!
 
Irfan Junedi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Missed some thing....

I am USING IDE as Eclipse and Server as Weblogic.....
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jre6"

You have already been told what the error and possible resolution is.
Preferences->Java->Installed JREs you can change the JRE to the JDK directory.
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IRFAN JUNEDI wrote:It is currently set to "C:\Program Files\Java\jre6"

That's not the JDK home - it's the JRE home. The necessary tools (especially javac.exe) cannot be found there.
 
Irfan Junedi
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh !
Got the solution..
thanks..
But here actual problem was jdk1.6 name convention.
The one which was mapped in the JAVA_HOME was c:\jdk1.6
But in the drive the folder name was renamed to "jdk6" by some of my friend..Thats the reason BUILD was getting failed.


Thanks for the reply GUYS!
Appreciate for your resonse!



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic