Jump to content
  • 0

Compile Error


aris96

Question

BUILD FAILED

C:\work\L2jFrozen_GameServer\build.xml:65: Unable to find a javac compiler;

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\jre7"

 

i already set java_home and path:


 


 


 

what am i doing wrong?

Edited by aris96
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

3rd screen, you have to set JDK, not jre.

i set jdk and now i got this error: http://postimg.org/image/vv4y0l9zl/

i used this solution: First install java jdk kit 7 on your pc then open eclipse Go to Window / preferences / Ant /Runtime / Select Ant Home Entries (default) and click add external jars... / navicate to jdk1.7.0_13 folder then Lib and select tools.jar and open then just click ok and then compile again and still the same error pops up

Link to comment
Share on other sites

  • 0

It's new Eclipse Mars project known issue. It's caused by C://Program%20Files/.. - when the folder has 2 words, is separated with a "space" %20 is put and so, you got that issue. Move the Eclipse folder into disc C:// or any folder with single folder name and everything will be okay.

Edited by SweeTs
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock