- Плагин
- placeholder api
- Ядро сервера
- Spigot
- Версия сервера
- 1.12.2
- Память сервера ОЗУ
- 6Gb
Моя версия джавы Java 8, версия placeholder api 2.11.3. При попытке добавления плагина в библиотеку (papi ecloud download LuckPerms) пишет что надо перезагрузить плагин (papi reload), после того как мы перезагружаем плагин ничего не происходит и в консоль выдает ошибку: java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/artemis/the/gr8/playerstatsexpansion/cache/JoinAndQuitListener has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
Объясняю, в консоли пишет что максимальная версия джавы поддерживаемая placeholder api это java SE 8 вот полный список версий (максимальная поддерживаемая - 52 - java SE 8):
49 = Java 5
50 = Java 6
51 = Java 7
52 = Java 8 - джава которая стоит у меня
53 = Java 9
54 = Java 10
55 = Java 11
56 = Java 12
57 = Java 13
58 = Java 14
59 = Java 15
60 = Java 16
61 = Java 17
62 = Java 18
63 = Java 19
64 = Java 20
Вопрос прост: почему Placeholder api жалуется, если версия моей джавы совпадает максимальной доступной версии джавы для плагина.
Вот весь лог от консоли:
[14:48:05 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[14:48:05 INFO]: [PlaceholderAPI] Fetching available expansion information...
[14:48:05 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/artemis/the/gr8/playerstatsexpansion/cache/JoinAndQuitListener has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_301]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_301]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_301]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_301]
Caused by: java.lang.UnsupportedClassVersionError: com/artemis/the/gr8/playerstatsexpansion/cache/JoinAndQuitListener has been compiled by a more recent version of the Java Runtime (class file version 60.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_301]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_301]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_301]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[?:1.8.0_301]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_301]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_301]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_301]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_301]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_301]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_301]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_301]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:411) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_301]
... 1 more
Объясняю, в консоли пишет что максимальная версия джавы поддерживаемая placeholder api это java SE 8 вот полный список версий (максимальная поддерживаемая - 52 - java SE 8):
49 = Java 5
50 = Java 6
51 = Java 7
52 = Java 8 - джава которая стоит у меня
53 = Java 9
54 = Java 10
55 = Java 11
56 = Java 12
57 = Java 13
58 = Java 14
59 = Java 15
60 = Java 16
61 = Java 17
62 = Java 18
63 = Java 19
64 = Java 20
Вопрос прост: почему Placeholder api жалуется, если версия моей джавы совпадает максимальной доступной версии джавы для плагина.
Вот весь лог от консоли:
[14:48:05 INFO]: [PlaceholderAPI] Placeholder expansion registration initializing...
[14:48:05 INFO]: [PlaceholderAPI] Fetching available expansion information...
[14:48:05 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/artemis/the/gr8/playerstatsexpansion/cache/JoinAndQuitListener has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_301]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_301]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_301]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_301]
Caused by: java.lang.UnsupportedClassVersionError: com/artemis/the/gr8/playerstatsexpansion/cache/JoinAndQuitListener has been compiled by a more recent version of the Java Runtime (class file version 60.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_301]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_301]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_301]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[?:1.8.0_301]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_301]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_301]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_301]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_301]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_301]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_301]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_301]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:411) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ~[?:1.8.0_301]
... 1 more