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

Error running javac.exe compiler

Harsha Mulani
Greenhorn

Joined: May 13, 2006
Posts: 13
While compiling my project using ant 1.8, i am getting the below error:

"
C:\BB_workspace\B4B\build.xml:10: The following error occurred while executing this line:
C:\BB_workspace\B4B\axis2-1.1\webapp\Axis2WarBuild.xml:110: Error running javac.exe compiler"

The line in Axis2WarBuild.xml which is causing the below error is:
"
<javac debug="on" memoryMaximumSize="256m" memoryInitialSize="256m" fork="true" destdir="${temp}/WEB-INF/classes" srcdir="${logservlet-src}" >
"

My JAVA_HOME (using jdk1.6), classpath and path settings are correct. Giving ant at the command prompt gives the below
"
C:\ant\apache-ant-1.8.0\bin>ant
Buildfile: build.xml does not exist!
Build failed
"

Can someone tell me how do I resolve this error?

Thanks
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Run an Ant
Harsha Mulani
Greenhorn

Joined: May 13, 2006
Posts: 13
I was able to complete the build from the command prompt.

But can someone tell me how do i complete the build from MYEclipse 6.6
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Not sure about MyEclipse. in Eclipse just right click on build.xml --> Run As --> Ant build.
Harsha Mulani
Greenhorn

Joined: May 13, 2006
Posts: 13
yes, i had tried the same option first when i got the error message I posted earlier
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

My ant skills are not that good but then I read "Axis2WarBuild.xml" and "Buildfile: build.xml does not exist!" a lightbulb appears above my head.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
wood burning stoves
 
subject: Error running javac.exe compiler