Skip to content

Compile Error

Featured Replies

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

change the java at eclipse, set jdk 1.7

  • Author

change the java at eclipse, set jdk 1.7

on installed jres?

Edited by aris96

  • Author

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

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

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.