This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Bartender
Posts: 11445
18
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
Posts: 20822
68
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!



 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!