Page 1 of 1
RegisterGameServer - java problem
Posted: Fri Jun 04, 2010 8:41 pm
by Noobiq
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision
Number:2340
L2JDP Revision
Number![Sad :(](./images/smilies/icon_sad.gif)
the one in hellbound section)
when i run RegisterGameServer.bat , it show only this text:
java is not recognized as an internal or external command, operable program or batch file.
press any key to cnotinue...
i tryed to reinstall java but nothing changed :/
any1 know how to fix this? :/
Re: RegisterGameServer - java problem
Posted: Fri Jun 04, 2010 9:00 pm
by janiii
add the java bin directory to PATH variable.
Re: RegisterGameServer - java problem
Posted: Fri Jun 04, 2010 9:09 pm
by Abyssal
hello there. listen how you fix this:
go to control panel - system - advanced system settings (or advanced system options) - go to the tab "advanced" - then click on "environment variables". now go to the "new" button (the second one down) and click it. for variable name type "JAVA_HOME" without the " and for variable value type the following:
C:\Program Files\Java\jdk1.5.0_04 (or whatever your jdk - java - version is go to C:\program files\java to see what is the version if you dont know. the name of the folder you see in front of you is the version). click ok then ok again and then ok again. restart your computer and you are done.
PS: see? this is how you help people. is it so hard for you guys to do the same thing i did for our friend noobiq in my topics?
Re: RegisterGameServer - java problem
Posted: Sat Jun 05, 2010 11:31 am
by Noobiq
so i tryed this, but nothing changed :/
Re: RegisterGameServer - java problem
Posted: Sat Jun 05, 2010 11:54 pm
by Sikken
add line to the beginning of RegisterGameServer.bat
Code: Select all
@echo offset PATH="C:\Program Files\java\jdk6\bin";%PATH%
don't forget to change the correct path to your java bin path, you can also use jre instead of jdk
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Re: RegisterGameServer - java problem
Posted: Sun Jun 06, 2010 9:54 am
by Noobiq
it works!
thx everyone for help
![Wink ;)](./images/smilies/icon_wink.gif)
Re: RegisterGameServer - java problem
Posted: Sun Mar 10, 2013 12:08 pm
by Paps
unlike u my path is C:\Program Files (x86)\Java\jre7
unfortunetly it's not working. Isn't that "jre7" supposed to me smthin like jdkX.X.X or w/e...? :/
I've tried everything i knew and still not working. I'd rly appreciate some help here. Thanks!
Re: RegisterGameServer - java problem
Posted: Sun Mar 10, 2013 4:20 pm
by MELERIX
JRE and JDK are different things, both are part of Java ofc.
JRE = is to run java apps.
JDK = is to compile java apps.
for example to run a L2J server you just need JRE, but if you want to work with L2J source code, modify it and compile it yourself, then you need JDK.
JDK installer include JRE.
JRE installer is just JRE only.
Re: RegisterGameServer - java problem
Posted: Mon Mar 11, 2013 7:56 pm
by Paps
Already got it fixed and the server running. Thanks anyway!
Just having troubles getting Admin right atm xD