Can't Build L2J_server 5496

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Madrobot
Posts: 47
Joined: Thu Jan 20, 2011 5:08 pm

Can't Build L2J_server 5496

Post by Madrobot »

If you want to receive support we need this info to help you properly.
ยป Find Revision
L2J Revision Number:
L2JDP Revision Number:

BUILD FAILED
C:\Users\gun\workspace\L2J_Server\build.xml:64: 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"

how to fix?
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: Can't Build L2J_server 5496

Post by tukune »

:twisted:
You do not have the required permissions to view the files attached to this post.
Madrobot
Posts: 47
Joined: Thu Jan 20, 2011 5:08 pm

Re: Can't Build L2J_server 5496

Post by Madrobot »

fixed now ! Thx master OR
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Can't Build L2J_server 5496

Post by MELERIX »

IamOR wrote::twisted:
wrong, that part is for JRE only, is not recommended to add JDK there.

for JDK you need to create JAVA_HOME variable, like we told in our guides:

http://trac.l2jserver.com/wiki/Eclipse#SetJAVA_HOME

http://trac.l2jdp.com/wiki/Eclipse#SetJAVA_HOME
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't Build L2J_server 5496

Post by jurchiks »

you mean: http://wso2.org/project/wsas/java/2.0/d ... -home.html
BTW, I also always add JDK there and no problems... But I have the JAVA_HOME and PATH variables set up a long time ago, maybe they "fix" something.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Can't Build L2J_server 5496

Post by Zoey76 »

It says Installed JRE, I wonder why someone would want to add the JDK.

If you leave the default JRE you will (as wiki says) set up the JAVA_HOME.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Can't Build L2J_server 5496

Post by jurchiks »

Well, obviously, if you point it to JDK, it will bypass the JAVA_HOME env variable, because it's a second-hand check if JRE fails.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply