Skip to content

Launching 1.17 server causes crash with Java class version error #2

@HoodedDeath

Description

@HoodedDeath

Description of Bug
Current script uses Java 8 for best results. 1.17 server jar needs to run under Java 16. Attempting with Java 8 results in following error

Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/Main 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

To Reproduce
Steps to reproduce the behavior:

  1. Start server as version 1.17.1 (or latest)
  2. Check log
  3. Near end of log is error and stack trace

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions