nikpappa Posted June 12, 2021 Posted June 12, 2021 Script engine does not work with any other java version other than 1.6, does anyone know how can I fix that?
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 On 6/12/2021 at 11:46 PM, nikpappa said: can you adjust it to mine? so i can try it java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer Expand Literally just change the "java" keyword to the path of your jdk 8 on your pc like mine....
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 5:49 PM, Zake said: Right click on project -> source -> cleanup Expand thanks for answering but i am using intelij I did invalidate caches but no change
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 This usually means wrong java version than required to run.
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 6:49 PM, HyperBlown said: This usually means wrong java version than required to run. Expand and how do i fix that? cant use 1.6 is so old
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 On 6/12/2021 at 7:01 PM, nikpappa said: and how do i fix that? cant use 1.6 is so old Expand the 1.6 doenst say it is 1.6 tho. but for example, Back in the days when I tried running an java 8 rev on Java 7 installed. then it would give this error.
0 Nightw0lf Posted June 12, 2021 Posted June 12, 2021 you need to build project with java 1.6 compliance its not hard you just select the version to build it from project settings https://prnt.sc/15733il
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 11:02 PM, Nightw0lf said: you need to build project with java 1.6 compliance its not hard you just select the version to build it from project settings https://prnt.sc/15733il Expand I know that, i am asking if there is any other way of doing it, i dont want to use java6
0 Nightw0lf Posted June 12, 2021 Posted June 12, 2021 On 6/12/2021 at 11:12 PM, nikpappa said: I know that, i am asking if there is any other way of doing it, i dont want to use java6 Expand just build datapack with java whatever too. also in java is hardcoded too the version of the build in script engine java-engine.jar also need to be updated for some packs
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 11:19 PM, Nightw0lf said: just build datapack with java whatever too. also in java is hardcoded too the version of the build in script engine Expand yes every jdk has i believe the same script engine im not sure, i just want to have java11 preferably
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 On 6/12/2021 at 11:25 PM, nikpappa said: yes every jdk has i believe the same script engine im not sure, i just want to have java11 preferably Expand Sometimes in life you dont get what you want If you want to use java11 on that revision, get the source and update it to java 11. Scripts engine is prorably for java 8. Deal with it or download and use the executable path in the gameserver.bat
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 11:37 PM, HyperBlown said: Sometimes in life you dont get what you want If you want to use java11 on that revision, get the source and update it to java 11. Scripts engine is prorably for java 8. Deal with it or download and use the executable path in the gameserver.bat Expand i tried adding -version:etc in the bat file but it wouldnt start the server
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 On 6/12/2021 at 11:41 PM, nikpappa said: i tried adding -version:etc in the bat file but it wouldnt start the server Expand Im using java15 on my pc, but a lot of my clients still rocking the java8 servers. so this is how I start up them: "C:\Program Files\Java\jdk1.8.0_261\bin\java" -server -Dfile.encoding=UTF-8 -Xms2g -Xmx5g -cp config;./lib/geoeng_l2s.jar;./lib/* l2s.gameserver.GameServer 1
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 (edited) On 6/12/2021 at 11:43 PM, HyperBlown said: Im using java15 on my pc, but a lot of my clients still rocking the java8 servers. so this is how I start up them: "C:\Program Files\Java\jdk1.8.0_261\bin\java" -server -Dfile.encoding=UTF-8 -Xms2g -Xmx5g -cp config;./lib/geoeng_l2s.jar;./lib/* l2s.gameserver.GameServer Expand can you adjust it to mine? so i can try it java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xmx1024m -cp ./../libs/*;l2jserver.jar net.sf.l2j.gameserver.GameServer Edited June 12, 2021 by nikpappa
0 nikpappa Posted June 12, 2021 Author Posted June 12, 2021 On 6/12/2021 at 11:49 PM, HyperBlown said: Literally just change the "java" keyword to the path of your jdk 8 on your pc like mine.... Expand i fking love you, it worked
Question
nikpappa
Script engine does not work with any other java version other than 1.6, does anyone know how can I fix that?
16 answers to this question
Recommended Posts