Page 1 of 2
What to do after compiling?
Posted: Wed Dec 09, 2009 11:52 pm
by cheatax21
****EDIT****look at my last reply please
Hello everyone, i get this msg when i try to compile the server:
Code: Select all
Buildfile: C:\workstation1\L2_GameServer\build.xmlclean: [delete] Deleting directory C:\workstation1\L2_GameServer\buildverifyRequirements:init: [mkdir] Created dir: C:\workstation1\L2_GameServer\build [mkdir] Created dir: C:\workstation1\L2_GameServer\build\classes [mkdir] Created dir: C:\workstation1\L2_GameServer\build\dist [mkdir] Created dir: C:\workstation1\L2_GameServer\build\dist\login [mkdir] Created dir: C:\workstation1\L2_GameServer\build\dist\gameserverversion: [exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, ??? ????? ?????? ? ?????? ??? ???????????? ??????? ??? ?? ???????compile: [javac] Compiling 1360 source files to C:\workstation1\L2_GameServer\build\classes BUILD FAILEDC:\workstation1\L2_GameServer\build.xml:76: 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\jre6" Total time: 1 second
I have installed sun sdk from the wiki as it said it is used to compile the server.
What should i do so i ll be able to compile it ?
Re: Compiling(Unable to find a javac compiler;)
Posted: Wed Dec 09, 2009 11:56 pm
by MELERIX
Read the Eclipse guides again: viewforum.php?f=2
you forgot to install Subversion and JAVA_HOME variable.
Re: Compiling(Unable to find a javac compiler;)
Posted: Thu Dec 10, 2009 12:24 am
by cheatax21
i did download and installed them, but still nothing :S same msg. Should I install them with the eclipse as i did for the subclipse?
Re: Compiling(Unable to find a javac compiler;)
Posted: Thu Dec 10, 2009 1:00 am
by cheatax21
onether issue: when i try to log in it is on but with 9999 ping :S and cannot log in :S what could be wrong?
Re: Compiling(Unable to find a javac compiler;)
Posted: Thu Dec 10, 2009 1:34 am
by MELERIX
cheatax21 wrote:i did download and installed them, but still nothing :S same msg. Should I install them with the eclipse as i did for the subclipse?
read the guide again,
Subversion is a different thing, and is not the same that
Subclipse.
cheatax21 wrote:onether issue: when i try to log in it is on but with 9999 ping :S and cannot log in :S what could be wrong?
check your firewall settings, or incorrect IP settings in the configs.
Re: Compiling(Unable to find a javac compiler;)
Posted: Thu Dec 10, 2009 12:03 pm
by cheatax21
thanks , the 9999 ping fixed, but now whenever I create a character it is appeared as a "to be deleted" in about 12000 days... How to fix this? :S
Can you tell me how to install the subversion? I downloaded an exe and installed it..
In the wiki it says that windows users (im using window vista) need to download another file not subversion:S
what and how should i install ?
thx in advance
Re: Compiling(Unable to find a javac compiler;)
Posted: Thu Dec 10, 2009 12:55 pm
by janiii
cheatax21 wrote:thanks , the 9999 ping fixed, but now whenever I create a character it is appeared as a "to be deleted" in about 12000 days... How to fix this? :S
use compatible client and server.
Re: Compiling(Unable to find a javac compiler;)
Posted: Fri Dec 11, 2009 12:58 pm
by cheatax21
thx janii.
i downloaded from gamershell a clean gracia final client, i copied to my desktop the l2.ini , renamed it to l2.exe and copied that to the system folder, however it could not run... i clicked checked files and it went to epilogue:S
can you post a link for a clean/working l2 gracia final client please?
Re: Compiling(Unable to find a javac compiler;)
Posted: Fri Dec 11, 2009 7:24 pm
by Vapulabe
l2.bin... but you should create a small wrapper program which execute it (instead of renaming it)... remind that client modding is illegal !!!
Re: Compiling(Unable to find a javac compiler;)
Posted: Sat Dec 12, 2009 10:00 pm
by cheatax21
yes i know, figured it out^ thanks all for your help both matters solved

I hadn't done the step with the java home to look on the jdk :S
thanks again ^have fun
Re: Compiling(Unable to find a javac compiler;)
Posted: Sat Dec 12, 2009 10:26 pm
by cheatax21
uhm, one last thing:
Now it says in the end: [zip] Building zip: C:\workstation1\L2_GameServer\build\L2J_Server.zip
BUILD SUCCESSFUL and without errors appearing.
and i found a new l2 gameserver.jar and one l2gameserver.rar and one build in C:\workstation1\L2_GameServer\build\
Which of these i copy to the gameserver directory? (the folder i run the server from)
In the wiki it says compile as normal, though the guide stops after the build is successfull. So this last part may be considered as obvius , but i m stucked at that:S Call me stupid ;p But i need help with this, I applied a patch voice command heal .--- Tell me if this is correct: I put the patch in C:\workstation1\L2_GameServer\java\net\sf\l2j\heal.java\ , and then i right click on gameserver/ team/apply patch/ browsed it/next/finish all good/ then build-run as-ant build 1- build successful. Now what i do so i have this patch in my server :S??
Thanks in advance all for your help:D
Re: Compiling(Unable to find a javac compiler;)
Posted: Sun Dec 13, 2009 12:03 am
by Vapulabe
Looks like your Javahome is pointing to a JRE (Java Runtime environment) and not a JDK (Java Developper Kit).
Check that the JDK for J2SE is installed and if it is, make the JAVA_HOME point to it (and your PATH find JDK before JRE)
Re: Compiling(Unable to find a javac compiler;)
Posted: Sun Dec 13, 2009 7:15 am
by cheatax21
Java_home does point to the JDK , the build is successfull no problem so far.
I just dont know what to do after the compile. How i see the changes in my live server?
I dont know if that makes any difference or is a problem but my server files are not the same as in the workspace.
its : C:\l2graciafinalserver
and C:\workstation1
what should i copy after the compile to my server so the patch i applied will work?
Re: What to do after compiling?
Posted: Sun Dec 13, 2009 11:20 am
by Callisto
The easiest way to get your eclipse to point to the JDK is to make a shortcut on the desktop of the eclipse, right click it, and in the Target field, after the location of eclipse type this : -vm "PATH_TO_JDK\bin"
Works like a charm everytime ^^
Re: What to do after compiling?
Posted: Sun Dec 13, 2009 1:59 pm
by cheatax21
This part is ok as i said... i need to know what i do after i compile...
I copy the .jar server to the gameserver ?
or i unzip the server.zip ??
thx