Stefan1200's Forum

JTS3ServerMod Hosting Edition => JTS3ServerMod MySQL & WebInterface => Topic started by: nobodyshome on October 10, 2017, 02:26:58 AM

Title: Java Error after updating from 6.4.1 to 6.4.2
Post by: nobodyshome on October 10, 2017, 02:26:58 AM
Error occurs when attempting to start the both:


Exception in thread "main" java.lang.UnsupportedClassVersionError: org/xbill/DNS/Resolver : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at de.stefan1200.jts3servermod.JTS3ServerMod.main(Unknown Source)


Any help would be appreciated.
Title: Re: Java Error after updating from 6.4.1 to 6.4.2
Post by: Stefan1200 on October 10, 2017, 07:26:08 AM
Oh, maybe because of a mistake the dnsjava library needs Java 8 currently. I will fix this as soon as I'm back home (within the next 14 hours).

Workaround:
Open the JTS3ServerMod.jar version 6.4.1 with a ZIP tool you have (maybe 7-Zip) and extract the org directory of it. Now open the JTS3ServerMod.jar version 6.4.2 and replace the org directory with the old one.

But to be sure, what is the output of java -version?
Title: Re: Java Error after updating from 6.4.1 to 6.4.2
Post by: Stefan1200 on October 10, 2017, 10:09:35 PM
Replaced the JTS3ServerMod_HostingEdition_6.4.2.zip on my server, please redownload it and replace the JTS3ServerMod.jar file. Compiled it again for Java 1.5 / 5 and newer, I hope that fix the problem.
Title: Re: Java Error after updating from 6.4.1 to 6.4.2
Post by: nobodyshome on October 11, 2017, 11:14:22 PM
Will do, the output from java -version incase its still needed:

java version "1.7.0_151"
OpenJDK Runtime Environment (IcedTea 2.6.11) (7u151-2.6.11-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.151-b01, mixed mode)
Title: Re: Java Error after updating from 6.4.1 to 6.4.2
Post by: nobodyshome on October 12, 2017, 12:16:53 AM
It worked! Thanks a bunch.