If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:2340
L2JDP Revision Numberthe 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? :/
RegisterGameServer - java problem
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: RegisterGameServer - java problem
add the java bin directory to PATH variable.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 74
- Joined: Wed Mar 10, 2010 1:53 am
Re: RegisterGameServer - java problem
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?
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?
-
- Posts: 4
- Joined: Fri Jun 04, 2010 8:28 pm
Re: RegisterGameServer - java problem
so i tryed this, but nothing changed :/
- Sikken
- Posts: 53
- Joined: Sat Sep 05, 2009 10:03 pm
Re: RegisterGameServer - java problem
add line to the beginning of RegisterGameServer.bat
don't forget to change the correct path to your java bin path, you can also use jre instead of jdk
Code: Select all
@echo offset PATH="C:\Program Files\java\jdk6\bin";%PATH%
-
- Posts: 4
- Joined: Fri Jun 04, 2010 8:28 pm
Re: RegisterGameServer - java problem
it works!
thx everyone for help
thx everyone for help
-
- Posts: 2
- Joined: Sun Mar 10, 2013 12:03 pm
Re: RegisterGameServer - java problem
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!
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!
- MELERIX
- L2j Veteran
- Posts: 6667
- Joined: Sat Sep 23, 2006 11:31 pm
- Location: Chile
- Contact:
Re: RegisterGameServer - java problem
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.
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.
-
- Posts: 2
- Joined: Sun Mar 10, 2013 12:03 pm
Re: RegisterGameServer - java problem
Already got it fixed and the server running. Thanks anyway!
Just having troubles getting Admin right atm xD
Just having troubles getting Admin right atm xD