Вопрос Не работает скрипт javascript на placeholderapi

EgorRybalko

Пользователь
Сообщения
48
Плагин
placeholderapi
Ядро сервера
  1. Paper
Версия сервера
  1. 1.12.2
Память сервера ОЗУ
6Gb
Ядро: paper 1.12.2.
Java: Не знаю какая.
Мне выдает ошибку:
[PlaceholderAPI] Failed to load expansion class JavascriptExpansion (Is a dependency missing?)
java.lang.UnsupportedClassVersionError: org/openjdk/nashorn/api/scripting/NashornScriptEngineFactory has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_321]
at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321]
at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321]
at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.8.0_321]
at java.net.URLClassLoader.access$100(Unknown Source) ~[?:1.8.0_321]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_321]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_321]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_321]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_321]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_321]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_321]
at com.extendedclip.papi.expansion.javascript.evaluator.NashornScriptEvaluatorFactory.create(NashornScriptEvaluatorFactory.java:34) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.createNashornEvaluatorFactory(JavascriptExpansion.java:176) ~[?:?]
at com.extendedclip.papi.expansion.javascript.JavascriptExpansion.register(JavascriptExpansion.java:97) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:191) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:1.8.0_321]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_321]
at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_321]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:350) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftTask.run(CraftTask.java:64) ~[patched_1.12.2.jar:git-Paper-1620]
at org.bukkit.craftbukkit.v1_12_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:840) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[patched_1.12.2.jar:git-Paper-1620]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[patched_1.12.2.jar:git-Paper-1620]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_321]
Помогите пожалуйста
UPD: Решено.
 
Последнее редактирование:
Версия java не та видать.
На сервер надо установить java версией выше, об этом написано в самой ошибке.
Установил java новой версии
=========================
Starting server. OS x64.
You need JAVA 8
=========================

Unrecognized VM option 'MaxPermSize=256M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

=========================
PRESS CTRL+C TO STOP SERVER
=========================


Время ожидания 3 сек., нажмите любую клавишу для продолжения ...
 
Назад
Сверху Снизу