Solved Start.command won't do anything

Discussion in 'Bukkit Help' started by BattleSaga, Jul 30, 2017.

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

    BattleSaga

    Code:
    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/bukkit/craftbukkit/Main : 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)
    
    I'm currently trying to make a spigot server on mac, but I'm having trouble with my start.command. Everytime time I try opening it, it doesn't seem to install anything into my server folder. It always comes up with that message I posted above. What does it mean and what should I do?
     
  2. Online

    timtower Administrator Administrator Moderator

  3. Offline

    BattleSaga

    I did, but still having the same issue
    Screen Shot 2017-07-30 at 3.10.31 PM.png
     
  4. Online

    timtower Administrator Administrator Moderator

    @BattleSaga Did you also remove the old java?
    And please post the content of your start file
     
  5. Offline

    BattleSaga

    I don't think so. How do I check if I have any old java files.
    and here you go

    #!/bin/bash
    cd "$(dirname "$0")"
    exec java -Xms1G -Xmx1G -jar spigot.jar nogui
     
  6. Online

    timtower Administrator Administrator Moderator

  7. Offline

    BattleSaga

    um...I don't understand what you mean by that... :|
    can you be more specific?
     
  8. Online

    timtower Administrator Administrator Moderator

    @BattleSaga Execute the command "java -version"
    Post the output here.
     
  9. Offline

    BattleSaga

    Last login: Sun Jul 30 17:14:58 on ttys000
    CHANGE-ME:~ name$ /Users/name/Desktop/Minecraft\ Server/start.command ; exit;
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
    logout
    Saving session...
    ...copying shared history...
    ...saving history...truncating history files...
    ...completed.

    [Process completed]

    Is this what you wanted to see?
     
    Last edited: Jul 30, 2017
  10. Online

    timtower Administrator Administrator Moderator

    @BattleSaga Yes, you still have java 6 installed, remove everything with java, install java 8.
     
  11. Offline

    BattleSaga

    Yay! it's working :). I had to update the computer so java could update to its latest version. Thank you so much for your help, you're amazing : D!
     
    timtower likes this.
  12. Offline

    Machine Maker

    @BattleSaga
    Please mark this thread as Solved if your issue has been resolved.
     
Thread Status:
Not open for further replies.

Share This Page