Mtihc / TreasureChest

The TreasureChest plugin for CraftBukkit
dev.bukkit.org/server-mods/treasurechest
10 stars 39 forks source link

Start up error #12

Closed Dalez closed 12 years ago

Dalez commented 12 years ago

Hi, I just tried to install this and I get this error:

2012-07-08 04:00:04 [SEVERE] Could not load 'plugins/TreasureChest.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/TreasureChestPlugin : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/TreasureChestPlugin : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) 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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 8 more

I looked into it and it seems that it does not load with Java 6, as you have complied it to Java 7? I'm not sure if this is right, but any help would be awesome, thanks!

Krglok commented 12 years ago

i have the same error.

I testest it with Java7 and its run fine :/

Dalez commented 12 years ago

So it's just not working with Java 6 then?

I don't want to upgrade in case my other plugins won't work with Java 7 :(

Mtihc commented 12 years ago

I came to the same conclusion. It's because I compiled with Java 7. And your server is probably running Java 6.

I think you should update Java anyway :-) If you do that, make sure the server starts with Java 7. You can change that in the .bat file that you use to start. Als, if i remember correctly, you must add Java 7 to the firewall-exceptions via Windows control panel.

Let me know again if you have any trouble. In the worst case, I will get you a version of the plugin for Java 6. :)

On Tue, Jul 10, 2012 at 8:21 AM, Dalez < reply@reply.github.com

wrote:

Hi, I just tried to install this and I get this error:

2012-07-08 04:00:04 [SEVERE] Could not load 'plugins/TreasureChest.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/TreasureChestPlugin : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/TreasureChestPlugin : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) 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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 8 more

I looked into it and it seems that it does not load with Java 6, as you have complied it to Java 7? I'm not sure if this is right, but any help would be awesome, thanks!


Reply to this email directly or view it on GitHub: https://github.com/Mtihc/TreasureChest/issues/12

Dalez commented 12 years ago

I'm currently on Debian and that means I will need to take down my server and re-install Java which is a massive pain seeing as they no longer have an apt-get java7 command :P

Also, I'm not sure if some plugins will work on Java 7, as I've heard some plugins don't support it.

lazareth241 commented 12 years ago

From my experience Dalez, open java 7 runs minecraft just fine. You can apt-get it too. However I typically run Kubuntu. (More packages for it than debian).

Dalez commented 12 years ago

I know Minecraft runs fine with Java 7, however, what if some plugins that I use are based only on java6 and won't work very nicely with Java 7? I don't want to take that risk and keep my server down for a while while I keep swapping the different versions of Java.

If you could make a Java 6 version, that would be so helpful for me as I don't want to change something that currently works well for my server (and make sure that there is no downtime due to changing Java versions).

Thanks :)

Krglok commented 12 years ago

Hello, you can installlJava 7 and make a test , on my Server ist runs fine, otherwise u can uninstall the jre7.

Atlan Eisenhammer Schmied und Geschichtenerzähler

-----Ursprüngliche Nachricht----- Von: Dalez [mailto:reply@reply.github.com] Gesendet: Donnerstag, 12. Juli 2012 16:55 An: Krglok Betreff: Re: [TreasureChest] Start up error (#12)

I know Minecraft runs fine with Java 7, however, what if some plugins that I use are based only on java6 and won't work very nicely with Java 7? I don't want to take that risk and keep my server down for a while while I keep swapping the different versions of Java.

If you could make a Java 6 version, that would be so helpful for me as I don't want to change something that currently works well for my server (and make sure that there is no downtime due to changing Java versions).

Thanks :)


Reply to this email directly or view it on GitHub: https://github.com/Mtihc/TreasureChest/issues/12#issuecomment-6937275

Mtihc commented 12 years ago

I changed all code that was incompatible with Java 6. Seamed easier at the time. Since version 8.1 or something. Just download the last version :)

I'm closing this issue.

Dalez commented 12 years ago

I just downloaded the latest version, put it in, restarted my server and I get this error:

2012-07-23 17:00:14 [SEVERE] Could not load 'plugins/TreasureChest.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/v8/plugin/TreasureChestPlugin : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:151) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:213) at org.bukkit.craftbukkit.CraftServer.(CraftServer.java:189) at net.minecraft.server.ServerConfigurationManager.(ServerConfigurationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:166) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedClassVersionError: com/mtihc/minecraft/treasurechest/v8/plugin/TreasureChestPlugin : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) 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 org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140) ... 8 more

Mtihc commented 12 years ago

That error means you need Java 7

I thought I fixed that though. I guess not.

You could wait for me to fix it. Or you could install Java 7 on your server.

Dalez commented 12 years ago

I finally installed Java 7 (I needed to plan maintenance) and I can now do /tchest and it works.

So it seems like installing Java 7 solved all my issues, thanks!

Mtihc commented 12 years ago

Yay! I'm glad!

Thanks for letting me know