Could not load plugins

Discussion in 'Bukkit Help' started by mightydespair, Apr 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    mightydespair

    Hi guys, I am starting my server and most of the plugins that I downloaded aren't working well
    or they are broken for some reason.

    here is the console:

    [23:38:07 ERROR]: Could not load 'plugins\Factions.jar' in folder 'plugins'
    org.bukkit.plugin.UnknownDependencyException: mcore
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:216) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.ja
    va:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:31
    2) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [c
    raftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14
    ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.jav
    a:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]

    and this is the second one

    [23:39:27 ERROR]: Could not load 'plugins\mcore.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError
    : com/massivecraft/mcore/MCore : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:131) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:328) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:251) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugins(CraftServer.ja
    va:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.craftbukkit.v1_7_R1.CraftServer.<init>(CraftServer.java:31
    2) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.PlayerList.<init>(PlayerList.java:63) [c
    raftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.DedicatedPlayerList.<init>(SourceFile:14
    ) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.jav
    a:126) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java
    :424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6
    17) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    Caused by: java.lang.UnsupportedClassVersionError: com/massivecraft/mcore/MCore
    : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.6.0_20]
    at java.lang.ClassLoader.defineClassCond(Unknown Source) ~[?:1.6.0_20]
    at java.lang.ClassLoader.defineClass(Unknown Source) ~[?:1.6.0_20]
    at java.security.SecureClassLoader.defineClass(Unknown Source) ~[?:1.6.0
    _20]
    at java.net.URLClassLoader.defineClass(Unknown Source) ~[?:1.6.0_20]
    at java.net.URLClassLoader.access$000(Unknown Source) ~[?:1.6.0_20]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.6.0_20]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.6.0_
    20]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.6.0_20]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:77) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.6.0_20]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.6.0_20]
    at java.lang.Class.forName0(Native Method) ~[?:1.6.0_20]
    at java.lang.Class.forName(Unknown Source) ~[?:1.6.0_20]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.jav
    a:40) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:127) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-2-g85f5776-b3024jnks]

    please reply quick so I can know what to do with it..
    thanks for the help :)
     
  2. Offline

    JWhy

  3. Offline

    mightydespair

    JWhy dude I have MCore scroll up to see it, Its the second plugin and it won't work too
     
  4. Offline

    JWhy

  5. Offline

    mightydespair

    it might be the solution but... my JRE that should have been updated, didnt worked at all. I mean, I updated it and it says that JRE7 is losing some files or something like that. what should I do now?
     
  6. Offline

    LHammonds

    Use an older version of Factions then I guess. I use the last one before MCore was required which is Faction 1.8.2 and it might not require JRE 1.7
     
  7. Offline

    mightydespair

    LHammonds then how about the MCore? should I use the old version too?
     
  8. Offline

    LHammonds

    There's no telling if a plugin requires Java 1.6 or Java 1.7 unless the author tells you "OR" you test it and find out yourself.

    If an author compiles their plugin using Java Development Kit 1.6, it "should" work on any server running JRE 1.6 or 1.7

    But if they compile it with JDK 1.7, servers running JRE 1.6 will not work.
     
  9. Offline

    mightydespair

    LHammonds ok thanks, maybe Ill try tomorrow, its pm here :))
     
  10. Offline

    JWhy

    mightydespair: Replace
    Code:
    java -Xms1G -Xmx2G -jar craftbukkit.jar
    in your start up command by
    Code:
    "C:\Program Files\Java\jre7\bin\java" -Xms1G -Xmx2G -jar craftbukkit.jar
    That will force the usage of JRE 7 (if it's installed at that location, which should be the case if you didn't manually specify another installation destination)
     
  11. Offline

    mightydespair

    JWhy I did it but the console says


    C:\Users\User\AppData\Roaming\.minecraft\Troller'sCraft>C:\Program Files\Java\jr
    e7\bin\java" -Xms1G -Xmx2G -jar craftbukkit.jar
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\User\AppData\Roaming\.minecraft\Troller'sCraft>PAUSE
    Press any key to continue . . .
     
  12. Offline

    LHammonds

    For the "C:\Program" is not recognized...that tells me you did not enclose the path to java in quotes. Be sure to surround the full path to java.exe in quotes exactly like JWhy quoted. The -Xms and other parameters will be outside the quoted part.

    It might also not like the apostrophe in Troller'sCraft

    I recommend putting your server folder someplace like C:\CraftBukkit\craftbukkit.jar

    EDIT: And just for the heck of it, here is a copy of my batch file I use when starting up local servers on my Windows PC. The only part you might need to customize is line #2 for the amount of RAM to use and line #3 for the path to the server jar file. The batch file will prefer to run JRE 1.7 over 1.6 and prefer 64-bit java over 32-bit java. Works on 32-bit or 64-bit machines alike.

    Startcb.bat
    Code:
    @ECHO OFF
    SET RAM2USE=2048
    CD /D C:\CraftBukkit
    
    REM ** Look for a version of Java 7 that matches the OS (32-bit for 32-bit, 64-bit for 64-bit) **
    IF EXIST "%ProgramFiles%\Java\jre7\bin\java.exe" GOTO JAVA7DEFAULT
    
    REM ** Look for 32-bit version of Java 7 on 64-bit OS **
    IF EXIST "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" GOTO JAVA732BIT
    
    REM ** Look for a version of Java 6 that matches the OS (32-bit for 32-bit, 64-bit for 64-bit) **
    IF EXIST "%ProgramFiles%\Java\jre6\bin\java.exe" GOTO JAVA6DEFAULT
    
    REM ** Look for 32-bit version of Java 6 on 64-bit OS **
    IF EXIST "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" GOTO JAVA632BIT
    
    :JAVA7DEFAULT
    REM ** This will execute if run on a 32-bit OS with a 32-bit version of Java 7 **
    REM ** This will execute if run on a 64-bit OS with a 64-bit version of Java 7 **
    "%ProgramFiles%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
    
    :JAVA732BIT
    REM ** This will execute if run on a 64-bit OS with only a 32-bit version of Java 7 **
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
    
    :JAVA6DEFAULT
    REM ** This will execute if run on a 32-bit OS with a 32-bit version of Java 6 **
    REM ** This will execute if run on a 64-bit OS with a 64-bit version of Java 6 **
    "%ProgramFiles%\Java\jre6\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
    
    :JAVA632BIT
    REM ** This will execute if run on a 64-bit OS with only a 32-bit version of Java 6 **
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
    
    :DONE
    REM ** This will pause the screen so you can see any error messages after stopping the CraftBukkit server. **
    PAUSE

    LHammonds
     
  13. Offline

    mightydespair

    what do you mean by that? how do I enclose the path to java?
     
  14. Offline

    LHammonds

    We have given you a ton of examples. Surround the path to java.exe in QUOTES which are --> " <-- but do not include the parameters after java.exe inside the quotes. Just look our examples.

    Correct:
    "C:\Program Files\Java\jre7\bin\java" -Xms1G -Xmx2G -jar craftbukkit.jar

    Incorrect:
    C:\Program Files\Java\jre7\bin\java -Xms1G -Xmx2G -jar craftbukkit.jar
    "C:\Program Files\Java\jre7\bin\java -Xms1G -Xmx2G -jar craftbukkit.jar"
     
  15. Offline

    mightydespair

    ohh so that means that if I add --> " <-- It means that will work for me?

    LHammonds dude, I replaced it with --> " <-- then this is the result


    C:\Users\User\AppData\Roaming\.minecraft\Craftbukkit>"C:\Program Files\Java\jre7
    \bin\java" -Xms1G -Xmx2G -jar craftbukkit.jar
    Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    C:\Users\User\AppData\Roaming\.minecraft\Craftbukkit>PAUSE
    Press any key to continue . . .

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 7, 2016
  16. Offline

    JWhy

    Code:
    "C:\Program Files\Java\jre7\bin\java" -Xms256M -Xmx1G -jar craftbukkit.jar
    That will make your JRE VM use less memory. But how much memory does your machine have installed? And are you using the 64 bit version of JRE7?
     
  17. Offline

    mightydespair

    Idk how much my memory... yes I do have FRE7 but I think something just haven't done/ downloaded yet... I mean idk if its totally JRE7
     
  18. Offline

    qh

    Mcore does not go in your plugins folder. Put it in the main directory and reply back with the result.
     
  19. Offline

    DrPyroCupcake

    mightydespair go into your system in the control panel. From their you should be able to see your Java and how much RAM you have.
     
  20. Offline

    LHammonds

    Try this then...I was cleaning up your example...use mine instead:

    Code:
    "C:\Program Files\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx2048M -Xms2048M -jar craftbukkit.jar nogui
    The above is giving 2 gigabytes of RAM to Minecraft.

    If you don't have that much to give, try the following line which is only 1 gigabyte (e.g. 1024 megabytes)

    Code:
    "C:\Program Files\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx1024M -Xms1024M -jar craftbukkit.jar nogui
    If that still does not work and its giving you errors, reboot your PC and try again.

    If it continues to be problematic after that, uninstall all versions of Java. Then install the latest version (JRE 1.7.0 Update 55 - At the time of this post)

    If you have a 64-bit system, it is recommended you install both the 32-bit and 64-bit versions of Java.

    LHammonds
     
Thread Status:
Not open for further replies.

Share This Page