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 2 minutes ago, 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 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 4 minutes ago, Zake said: Right click on project -> source -> cleanup 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 12 minutes ago, HyperBlown said: This usually means wrong java version than required to run. and how do i fix that? cant use 1.6 is so old
0 HyperBlown Posted June 12, 2021 Posted June 12, 2021 1 hour ago, nikpappa said: and how do i fix that? cant use 1.6 is so old 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 9 minutes ago, 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 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 6 minutes ago, nikpappa said: I know that, i am asking if there is any other way of doing it, i dont want to use java6 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 5 minutes ago, Nightw0lf said: just build datapack with java whatever too. also in java is hardcoded too the version of the build in script engine 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 11 minutes ago, nikpappa said: yes every jdk has i believe the same script engine im not sure, i just want to have java11 preferably 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 3 minutes ago, 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 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 Just now, nikpappa said: i tried adding -version:etc in the bat file but it wouldnt start the server 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) 2 minutes ago, 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 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 8 minutes ago, HyperBlown said: Literally just change the "java" keyword to the path of your jdk 8 on your pc like mine.... 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