Getting Error running javac.exe compiler message, while using Ant in Eclipse?

I had the same problem and the issue was, in eclipse java. Home was referring to JRE instead of JDK. I changed it and the build was successful.

You can do the following to change it to JDK.

Up vote 3 down vote favorite share g+ share fb share tw.

When I run my Ant build in Eclipse, I'm getting the following error message and the Ant build fails. Error Message: Error running javac. Exe compiler Line where the build stops: Has anyone faced a similar problem before?

Or does anybody know what's wrong here? System Information: Eclipse Helio, JDK 1.5 java eclipse ant build link|improve this question asked Aug 3 '10 at 7:21Veera1,93382048 96% accept rate.

– Jon Skeet Aug 3 '10 at 7:22 no more output after the error message. Will try with verbose logging. – Veera Aug 3 '10 at 7:25.

I had the same problem and the issue was, in eclipse java. Home was referring to JRE instead of JDK. I changed it and the build was successful.

You can do the following to change it to JDK: Preferences > Java > Installed JRE's > Add... For 'JRE Type' select 'Standard VM' > Next > Directory: select your JDK directory (instead of JRE) (in my case: C:\Program Files\Java\jdk1.6.0_16 ), press OK. Now, you are back at 'Installed JRE's', select the JDK here also. The below post helped in finding the solution.

JAVA_HOME points to the wrong place.

Maybe the javac problem is because "javac. Exe" is not in your System PATH, please edit your system path and add your JDK's /bin directory to it to correct this problem. Open a shell or command prompt and try typing: javac to check if the system path is set correctly.

I have configured the JDK in Eclipse "Installed JRE's" preference page I think Eclipse takes care of putting the javac in claspath. – Veera Aug 3 '10 at 7:27 Don't confuse CLASSPATH with SYSTEM PATH, the classpath is used for compilation purposes, system path takes care of system binaries. You can try if the problem is that, just append the JDK bin path to your SYSTEM PATH.

– Impiastro Aug 3 '10 at 7:39.

Try changing memorymaximumsize="1G" to memorymaximumsize="512M".

Configuring eclipse to point to JDK instead of JRE did not work for me. With further investigation, I solved this problem by stopping the build process from forking. In your build.

Xml, remove the attribute fork from tag.

I had the same problem and removed the attribute fork from javac and problem was gone.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions