gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API, OPDS and Kobo Sync support
https://komga.org
MIT License
4.14k stars 246 forks source link

i cannot install by java #1717

Closed 6713lyp closed 1 month ago

6713lyp commented 1 month ago

Steps to reproduce

PS C:\Users\Lenovo\komga-1.14.0> java -jar komga-1.14.0.jar Exception in thread "main" java.lang.UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher 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 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Expected behavior

i want to install it

Actual behavior

i do not know

Logs

No response

Komga version

1.14.0

Operating system

win11

Installation method

jar

Other details

No response

Acknowledgements

gameaddict2724 commented 1 month ago

according to the line this version of the Java Runtime only recognizes class file versions up to 52.0 you are running older version of java. to run komga u will Java version 17 or newer. read the following https://komga.org/docs/installation/jar

gotson commented 1 month ago

As mentioned in the previous comment, your Java is too old. You can check the version using java -version