Now I've been looking into upgrading my 1.11.2 server to 1.12 by actually just deleting it and re-making it from the ground up, but whenever I boot up start.command, this pops up in the Terminal.
Now I've been looking at this for awhile, and I believe the minecraft_server.1.12.jar file was compiled with Java 6 instead of the newly required Java 8 that 1.12 requires you to use. But I don't really know how that works so...
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/MinecraftServer : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Now I've been looking at this for awhile, and I believe the minecraft_server.1.12.jar file was compiled with Java 6 instead of the newly required Java 8 that 1.12 requires you to use.
Minecraft 1.12 does require Java 8 as you say you believe that it was compiled with Java 6 did you compile the server jar or download it from Mojangor did you get it from a non-legitimate source?
Minecraft 1.12 does require Java 8 as you say you believe that it was compiled with Java 6 did you compile the server jar or download it from Mojangor did you get it from a non-legitimate source?
I downloaded it straight from Mojang by clicking the 'Download Server' button in the 1.12 Launch Options tab.
Oracle's installer puts java inside the /Library/Internet Plug-Ins/JavaAppletPlugin.plugin. And it doesn't overwrite /usr/bin/java. So, if you issue a
whereis java
in the terminal, it'll return /usr/bin/java. (which in turn points to /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java, which is Apple's 1.6 version).
So, if you want to use the new java version, replace the /usr/bin/java symlink so that it points to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java instead:
This almost got me there... I was having the same problem and found this thread - I had no idea where to start - Thanks, uknighted. I wasn't able to run the rm command, but updated the line in the start.command file to
Now I've been looking into upgrading my 1.11.2 server to 1.12 by actually just deleting it and re-making it from the ground up, but whenever I boot up start.command, this pops up in the Terminal.
Now I've been looking at this for awhile, and I believe the minecraft_server.1.12.jar file was compiled with Java 6 instead of the newly required Java 8 that 1.12 requires you to use. But I don't really know how that works so...
Exception in thread "main" java.lang.UnsupportedClassVersionError: net/minecraft/server/MinecraftServer : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Minecraft 1.12 does require Java 8 as you say you believe that it was compiled with Java 6 did you compile the server jar or download it from Mojangor did you get it from a non-legitimate source?
I downloaded it straight from Mojang by clicking the 'Download Server' button in the 1.12 Launch Options tab.
Same problem happening here, on OS X. Is there anyone out there who has a solution to this?
My youtube: https://www.youtube.com/channel/UCO9DtxabZWZpv_k-rsUx7FA
My steam group: https://steamcommunity.com/groups/castlecrashersarmy
Found the solution. Credit to this thread: https://stackoverflow.com/questions/12757558/installed-java-7-on-mac-os-x-but-terminal-is-still-using-version-6
Oracle's installer puts java inside the /Library/Internet Plug-Ins/JavaAppletPlugin.plugin. And it doesn't overwrite /usr/bin/java. So, if you issue a
in the terminal, it'll return /usr/bin/java. (which in turn points to /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands/java, which is Apple's 1.6 version).
So, if you want to use the new java version, replace the /usr/bin/java symlink so that it points to /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java instead:
My youtube: https://www.youtube.com/channel/UCO9DtxabZWZpv_k-rsUx7FA
My steam group: https://steamcommunity.com/groups/castlecrashersarmy
This almost got me there... I was having the same problem and found this thread - I had no idea where to start - Thanks, uknighted. I wasn't able to run the rm command, but updated the line in the start.command file to
"exec /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -Xms1G -Xmx1G -jar minecraft_server.1.12.1.jar nogui" ...and it works.