aspose file tools*
The moose likes Java in General and the fly likes Build Getting Failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Build Getting Failed" Watch "Build Getting Failed" New topic
Author

Build Getting Failed

Irfan Junedi
Greenhorn

Joined: Mar 30, 2008
Posts: 13
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

Joined: Mar 30, 2008
Posts: 13
Missed some thing....

I am USING IDE as Eclipse and Server as Weblogic.....
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10375
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Irfan Junedi
Greenhorn

Joined: Mar 30, 2008
Posts: 13
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Build Getting Failed