Error linkageerror occurred while loading main class main

Why do I get LinkageError when only one version of Java seems to be available? This is my Java environment: But when trying to execute a program after compiling it I get the following error: My PATH and JAVA_HOME variables both point to this version of java. I have other versions downloaded but it […]

Содержание

  1. Why do I get LinkageError when only one version of Java seems to be available?
  2. 4 Answers 4
  3. Related
  4. Hot Network Questions
  5. Subscribe to RSS
  6. Смена версии Java (JDK)
  7. Инструкция
  8. Возможные проблемы
  9. Не могу выбрать образ
  10. Error linkageerror occurred while loading main class main
  11. Breadcrumbs
  12. Improve error message when loading an invalid class version #13347
  13. Comments

Why do I get LinkageError when only one version of Java seems to be available?

This is my Java environment:

But when trying to execute a program after compiling it I get the following error:

My PATH and JAVA_HOME variables both point to this version of java. I have other versions downloaded but it seems they are not registered in the system:

So how come the compilation and execution are done with different versions?

4 Answers 4

The problem is that the other downloaded versions of Java are reachable via my PATH variable. So after specifying the full path to the javac and java executables when compiling and executing my program it works.

I got this error in eclipse:

  1. Right Click on Project Name
  2. Select Properties
  3. select Java Compiler
  4. Click on Restore Defaults.
  5. Apply and close.

use with sudo command for update-alternatives —config javac and update-alternatives —config java . So, you can choose the same version of java for compiler and runtime environment.

I have also got same error after compiling my java program. I have screenshot —->

This error also happens when you try to change the content of java .class file. bytecode verifier generates this error eg.

Error: LinkageError occurred while loading main class Hello java.lang.UnsupportedClassVersionError: Hello has been compiled by a more recent version of the Java Runtime (class file version 8251.8224), this version of the Java Runtime only recognizes class file versions up to 59.0

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.1.14.43159

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Смена версии Java (JDK)

По умолчанию для всех Minecraft Java Edition серверов устанавливается Java 11 или 16, в зависимости от устанавливаемой версии игры. Поскольку, начиная с версии 1.17, игра требует Java 16 для работы, в то время как старые версии (например, 1.12.2) её не поддерживают, клиенты могут сталкиваться с подобными ошибками при запуске серверов:

Конкретно эта ошибка вызвана тем, что сервер, не поддерживающий версии Java до 16, запускается с Java 11. Владельцы серверов с Forge могут сталкиваться с тем, что их сервера не запускаются, в самом начале выдавая такую ошибку:

Эта ошибка тоже вызвана использованием неподдерживаемой версии Java. Старые версии Forge поддерживают только Java 8 и не умеют работать с новыми механизмами загрузки классов, введёнными в Java 9. В обоих случаях возникает необходимость установить другую версию Java. Клиенты в большинстве случаев могут сделать это сами.

Сервера на хостинге запускаются в Docker контейнерах, что позволяет изолировать их друг от друга и относительно легко создать нужную среду для сервера. В Docker эта среда создаётся из так называемого образа. Соответственно, для изменения версии Java в контейнере, нужно изменить Docker образ.

Инструкция

  1. Перейдите во вкладку «Запуск» в панели управления сервером

  1. В разделе Docker образ выберите нужную версию.
  • Java 8 — ghcr.io/pterodactyl/yolks:java_8
  • Java 11 — ghcr.io/pterodactyl/yolks:java_11
  • Java 16 — ghcr.io/pterodactyl/yolks:java_16
  • Java 17 — ghcr.io/pterodactyl/yolks:java_17

Всё, версия Java изменена. Для применения изменений необходимо перезапустить сервер.

Возможные проблемы

Не могу выбрать образ

На некоторых серверах, особенно старых, вы можете столкнуться с тем, что выбрать образ нельзя:

В таких ситуациях просто обратитесь в техническую поддержку, мы установим нужную версию Java.

Источник

Error linkageerror occurred while loading main class main

Community

Participate

Eclipse IDE

Home » Newcomers » Newcomers » Error: LinkageError occurred while loading main class (Problems Downgrading JDK)

Error: LinkageError occurred while loading main class [message #1826170] Mon, 20 April 2020 15:22
Windy Player
Messages: 17
Registered: April 2020
Developing a desktop app for Windows and Linux. Installed JDK14 on Windows and then found nightmare trying to install that on Linux. Linux supported version is JDK11.

So, found installer for JDK11 for Windows. Eclipse Already installed and project built in JDK14 on Windows. So. Eclipse won’t run after «downgrade».
So, Eclipse not in Windows list of installed programs.
So run Eclipse installer for again.
After a lot of fiddling, Eclipse is running. So add Window Builder again.
So, begin fixing up project settings for JDK11 rather than 14. Mostly this is working

Closed Eclipse and then it won’t run again. Says there is no JDK14? Huh? I just did reinstall. So FREAKING Manually Edit the Eclipse.ini file and find reference to JDK14 as the VM for the whole freaking thing? Huh? Installer did not fix that. And how did it ever run. JDK14 is GONE from system. So Manually Edit the Eclipse.ini file to point to JDK 11.

At this point I have considered Wiping the system disk and starting over, but seriously. Shouldn’t the Installer rewrite the INI file? Ok so

I’m still getting this when I try to run the program:

Project settings — all things I can find have been set to JDK11.
So, Project Clean FAIL
Uncheck Build Automatically
Build All
Delete .class files manually from the offending package
Clean All
Build All
And still these same errors

So What’s the answer so I can get back to work.
BTW, this is the whole reason that I’m doing this. JDK14 yada yada yada JDK11 as above is the reason that I needed to downgrade Windows install from JDK14 to JDK11 since Linux supports JDK11 not JDK14.

And Yes, I tried to install JDK14 on Linux and that failed so badly that I had to completely rebuild the Linux VM system from scratch — build a brand new one from a brand new VDI hard drive. Yep Hosed that badly.

So long and whining story later.

Please, how can I fix this error. Even manually deleting the class files does not help.
Thanks.

[Updated on: Mon, 20 April 2020 15:25]

Re: Error: LinkageError occurred while loading main class [message #1826173 is a reply to message #1826170] Mon, 20 April 2020 15:35
Windy Player
Messages: 17
Registered: April 2020
Sorry for the tirade, but now I’ve found it: I spent an hour working on before I posted this: But now I found this:

And it mentions setting the Java Compiler. For some reason, Eclipse was still stuck on JDK13 when that was not even installed on system.
But when I changed that to JDK11 and said YES to «Full Rebulid» prompt, things are actually working now.

(1) Downgrading Java version is a nightmare. So many things to fix separately. Even when you set each to default for all projects.

(2) Eclipse Installer does not re-write the Eclipse.INI file to the correct version of Java if you are downgrading. Gotta do this manually by editing this file.

Ok. Marked SOLVED whereever that is.
Thanks to Google Search for eventually finding the answer.

Re: Error: LinkageError occurred while loading main class [message #1826177 is a reply to message #1826173] Mon, 20 April 2020 16:10
Windy Player
Messages: 17
Registered: April 2020
Oh, Wait. Could I have left JDK14 installed on windows and then just asked Eclipse to use JDK11 to build and run the project? Because JDK11 is still there in JDK14? I guess one would expect a JDK to be backward compatible.

That sure would have been much easier.
Oh well. Live and learn. I wonder if upgrading back to JDK14 or 16 or whatever will be a issue. What do I have to do to fix Eclipse? Edit INI files? Run installers? Another day. Problem for the future.

Источник

Improve error message when loading an invalid class version #13347

Current, if we try to run a more recent Java class in an old JVM, we get the following error message:

However, it is not so easily to detect that the class was compiled with a version above the supported by the JVM.Hotspot gives a more informative error message, so maybe it would be possible to improve the message in some way.

The text was updated successfully, but these errors were encountered:

hey @Thihup I would like to work on this issue could you please help me on how can I get started start with this.

@AbhigyanSrivastav Compiling a class with a newer Java version (like 18) and trying to run on Java 17 should cause this issue

Is this still up? I would like to contribute

Yes the issue is still relevant.

@pshipton Could you guide me on how to proceed?

As you can see it initializes the J9CfrError struct with the error values. You can extend the J9CfrError struct to include the major/minor/max classfile version info, and create a new helper to populate it. The other helpers need to initialize the new fields to a default value like 0 or -1.
https://github.com/eclipse-openj9/openj9/blob/master/runtime/oti/j9nonbuilder.h#L324
As long as the J9CfrError struct is smaller than INITIAL_CLASS_FILE_BUFFER_SIZE (4096) there is no issue with overflowing the buffer.

Add new NLS template(s) at the end of the .nls file with appropriate error messages, and use these templates to create the error messages when the major/minor version error info is populated.

Источник

Adblock
detector

Changed /etc/systemd/system/inception.service to the full path of java-11

  [Unit]
  Description=INCEpTION

  [Service]
  ExecStart=/usr/lib/jvm/java-11-openjdk-amd64/bin/java -jar /srv/inception/inception.jar
  User=www-data

  [Install]
  WantedBy=multi-user.target

But it looks like this is not finding that I set up the MariaDB as in the documentation. How do I debug this?

-- Logs begin at Wed 2021-03-17 14:03:55 CET, end at Wed 2021-03-17 14:05:58 CET. --
mrt 17 14:04:21 live systemd[1]: Started INCEpTION.
mrt 17 14:04:40 live java[868166]:   _____    __  ___   __     __________  ___    __
mrt 17 14:04:40 live java[868166]:   _   /  / __ /__ __/__   _   /___/  
mrt 17 14:04:40 live java[868166]:    / //  / / /   /_| '_  / /// ///  //  / /
mrt 17 14:04:40 live java[868166]: // /_/ /  / /___//__| |_) / /// /_/ _// /  /
mrt 17 14:04:40 live java[868166]: ____/_ /____/__/| .__// ____/___/_ /
mrt 17 14:04:40 live java[868166]:                       |_|
mrt 17 14:04:40 live java[868166]: 0.18.3 (2021-03-09 20:02:49, build bf16e970)
mrt 17 14:04:41 live java[868166]: 2021-03-17 14:04:41 INFO [SYSTEM] InceptionApplicationContextInitializer - Authentication: database
mrt 17 14:04:41 live java[868166]: 2021-03-17 14:04:41 INFO [SYSTEM] InceptionApplicationContextInitializer - Max. application memory: 1962MB
mrt 17 14:04:41 live java[868166]: 2021-03-17 14:04:41 INFO [SYSTEM] INCEpTION - Starting INCEpTION using Java 11.0.10 on live with PID 868166 (/srv/inception/inception.jar started by www-data in /)
mrt 17 14:04:41 live java[868166]: 2021-03-17 14:04:41 INFO [SYSTEM] INCEpTION - The following profiles are active: auto-mode-builtin
mrt 17 14:04:59 live java[868166]: 2021-03-17 14:04:59 INFO [SYSTEM] TomcatWebServer - Tomcat initialized with port(s): 8080 (http)
mrt 17 14:05:05 live java[868166]: 2021-03-17 14:05:05 INFO [SYSTEM] TomcatWebServer - Tomcat started on port(s): 8080 (http) with context path ''
mrt 17 14:05:07 live java[868166]: 2021-03-17 14:05:07 FATAL [SYSTEM] ENGINE - could not reopen database
mrt 17 14:05:07 live java[868166]: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.persist.Logger.acquireLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.persist.Logger.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.Database.reopen(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.Database.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.DatabaseManager.newSession(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:313) ~[liquibase-core-3.10.3.jar!/:?]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1159) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:07 live java[868166]:         at de.tudarmstadt.ukp.inception.INCEpTION.main(INCEpTION.java:282) [classes!/:?]
mrt 17 14:05:07 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
mrt 17 14:05:07 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
mrt 17 14:05:07 live java[868166]:         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
mrt 17 14:05:07 live java[868166]:         at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [inception.jar:?]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:107) [inception.jar:?]
mrt 17 14:05:07 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [inception.jar:?]
mrt 17 14:05:07 live java[868166]:         at de.tudarmstadt.ukp.inception.bootloader.ExtensibleClasspathEnabledWarLauncher.main(ExtensibleClasspathEnabledWarLauncher.java:126) [inception.jar:?]
mrt 17 14:05:08 live java[868166]: 2021-03-17 14:05:08 ERROR [SYSTEM] HikariPool - HikariPool-1 - Exception during pool initialization.
mrt 17 14:05:08 live java[868166]: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:313) ~[liquibase-core-3.10.3.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) [spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1159) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588) [spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at de.tudarmstadt.ukp.inception.INCEpTION.main(INCEpTION.java:282) [classes!/:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:107) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at de.tudarmstadt.ukp.inception.bootloader.ExtensibleClasspathEnabledWarLauncher.main(ExtensibleClasspathEnabledWarLauncher.java:126) [inception.jar:?]
mrt 17 14:05:08 live java[868166]: Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.Logger.acquireLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.Logger.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.Database.reopen(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.Database.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.DatabaseManager.newSession(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         ... 39 more
mrt 17 14:05:08 live java[868166]: 2021-03-17 14:05:08 WARN [SYSTEM] AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]: 2021-03-17 14:05:08 ERROR [SYSTEM] SpringApplication - Application run failed
mrt 17 14:05:08 live java[868166]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.DatabaseException: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:609) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:531) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1159) ~[spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) ~[spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:588) ~[spring-context-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:767) ~[spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:426) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.SpringApplication.run(SpringApplication.java:326) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:144) [spring-boot-2.4.2.jar!/:2.4.2]
mrt 17 14:05:08 live java[868166]:         at de.tudarmstadt.ukp.inception.INCEpTION.main(INCEpTION.java:282) [classes!/:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:107) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) [inception.jar:?]
mrt 17 14:05:08 live java[868166]:         at de.tudarmstadt.ukp.inception.bootloader.ExtensibleClasspathEnabledWarLauncher.main(ExtensibleClasspathEnabledWarLauncher.java:126) [inception.jar:?]
mrt 17 14:05:08 live java[868166]: Caused by: liquibase.exception.DatabaseException: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:318) ~[liquibase-core-3.10.3.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         ... 26 more
mrt 17 14:05:08 live java[868166]: Caused by: java.sql.SQLException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:313) ~[liquibase-core-3.10.3.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         ... 26 more
mrt 17 14:05:08 live java[868166]: Caused by: org.hsqldb.HsqlException: Database lock acquisition failure: lockFile: org.hsqldb.persist.LockFile@783f44b2[file =/var/www/.inception/db/inception.lck, exists=false, locked=false, valid=false, ] method: openRAF reason: java.io.FileNotFoundException: /var/www/.inception/db/inception.lck (No such file or directory)
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.error.Error.error(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.LockFile.newLockFileLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.Logger.acquireLock(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.persist.Logger.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.Database.reopen(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.Database.open(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.DatabaseManager.getDatabase(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.DatabaseManager.newSession(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source) ~[hsqldb-2.5.1.jar!/:2.5.1]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112) ~[HikariCP-3.4.5.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:313) ~[liquibase-core-3.10.3.jar!/:?]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1847) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784) ~[spring-beans-5.3.3.jar!/:5.3.3]
mrt 17 14:05:08 live java[868166]:         ... 26 more
mrt 17 14:05:08 live systemd[1]: inception.service: Main process exited, code=exited, status=1/FAILURE
mrt 17 14:05:08 live systemd[1]: inception.service: Failed with result 'exit-code'.

По умолчанию для всех Minecraft Java Edition серверов устанавливается Java 11 или 16, в зависимости от устанавливаемой версии игры. Поскольку, начиная с версии 1.17, игра требует Java 16 для работы, в то время как старые версии (например, 1.12.2) её не поддерживают, клиенты могут сталкиваться с подобными ошибками при запуске серверов:

Конкретно эта ошибка вызвана тем, что сервер, не поддерживающий версии Java до 16, запускается с Java 11. Владельцы серверов с Forge могут сталкиваться с тем, что их сервера не запускаются, в самом начале выдавая такую ошибку:

Эта ошибка тоже вызвана использованием неподдерживаемой версии Java. Старые версии Forge поддерживают только Java 8 и не умеют работать с новыми механизмами загрузки классов, введёнными в Java 9. В обоих случаях возникает необходимость установить другую версию Java. Клиенты в большинстве случаев могут сделать это сами.

Сервера на хостинге запускаются в Docker контейнерах, что позволяет изолировать их друг от друга и относительно легко создать нужную среду для сервера. В Docker эта среда создаётся из так называемого образа. Соответственно, для изменения версии Java в контейнере, нужно изменить Docker образ.

Инструкция

  1. Перейдите во вкладку «Запуск» в панели управления сервером

Вкладка "Запуск"

  1. В разделе Docker образ выберите нужную версию.
  • Java 8 — ghcr.io/pterodactyl/yolks:java_8
  • Java 11 — ghcr.io/pterodactyl/yolks:java_11
  • Java 16 — ghcr.io/pterodactyl/yolks:java_16
  • Java 17 — ghcr.io/pterodactyl/yolks:java_17

Всё, версия Java изменена. Для применения изменений необходимо перезапустить сервер.

Возможные проблемы

Не могу выбрать образ

На некоторых серверах, особенно старых, вы можете столкнуться с тем, что выбрать образ нельзя:

Нельзя изменить образ

В таких ситуациях просто обратитесь в техническую поддержку, мы установим нужную версию Java.

I’m trying to set up a Minecraft server for my friends and I get the following error every time I try to launch it

Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
    java.lang.UnsupportedClassVersionError:
    net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0),
    this version of the Java Runtime only recognizes class file versions up to 55.0

(copied and pasted)

I have the current JRE available on Ubuntu (build 11.0.15.10). I’ve tried removing all versions of JRE on my server and reinstalling only the most recent one, but I get the same error.
I even updated the whole server from Ubuntu 18 to Ubuntu 20. Any help is much appreciated.

muru's user avatar

muru

189k52 gold badges460 silver badges711 bronze badges

asked Jun 1, 2022 at 6:13

Joseph Ngechu's user avatar

1

from your error you have to know that Java 17 = class file version 61.0
Java 11 = class file version 55.0

So you need to install Java 17. By default Ubuntu have this command sudo apt install default-jre which will install some version of the JRE on your system. Now because you want exactly Java 17 you can try to execute sudo apt install openjdk-17-jre-headless. If this result in error because it is not in the Repository of Ubuntu you can check some tutorial like this to installed it manually:
https://techviewleo.com/install-java-openjdk-on-ubuntu-linux/

In your system there is already Java 11. To switch which version you need: sudo update-alternatives --config java The you have to choose the number of the row with the right JVM.

Good luck to all!

answered Jun 2, 2022 at 11:55

Level_Up's user avatar

Level_UpLevel_Up

5564 silver badges9 bronze badges

04.04.2019, 23:47. Показов 1879. Ответов 2


При нажатии F5 в окне дебага выводит

Код

Error: LinkageError occurred while loading main class Hello
	java.lang.UnsupportedClassVersionError: Hello (class file version 52.65535) was compiled with preview features that are unsupported. This version of the Java Runtime only recognizes preview features for class file version 56.65535

Результат javac -version

java -version

Код

openjdk version "12" 2019-03-19
OpenJDK Runtime Environment AdoptOpenJDK (build 12+33)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12+33, mixed mode, sharing)

Сам код

Java
1
2
3
4
5
6
public class Hello {
    public static void main(String[] agrs)
    {
        System.out.println("Hello world!");
    }
}

Пути в PATH прописаны, JAVA_HOME и JRE_HOME тоже указаны.
Дополнение для дебага установлено.
Этот же код без проблем компилируется и запускается в InteliJ IDEA 2019.

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь



0



Понравилась статья? Поделить с друзьями:
  • Error link 2001
  • Error line contained too many invalid tokens
  • Error line 753 error description pure virtual function call
  • Error line 748
  • Error line 502