Can't setup BungeeCord properly

Discussion in 'BungeeCord Discussion' started by Brayx4, May 17, 2013.

  1. Hello everyone! I run my spigot server on OSX and want to connect multiple servers together. I cannot get BungeeCord going at all. I have looked at a couple of YouTube video's but that didn't help. I downloaded the latest version of BungeeCord.jar, made a new folder, put the .jar file in and clicked on it. It then brought up some files: config.yml, locations.yml, plugins, proxy.log.0 and proxy.log.0.lck. I made a start.command that looks like this:

    #!/bin/bash
    cd "$( dirname "$0" )"
    java -Xms1024M -Xmx1024M -jar BungeeCord.jar -o true

    And gave it permission with "chmod a+x ":

    I clicked on the script and an error came up saying:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: net/md_5/bungee/BungeeCord : 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 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

    [Process completed]

    I have no idea what this means, so I'll leave it up to you guys!

    I think Java is a factor, so I ran java -version:

    java version "1.6.0_45"
    Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
    Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)

    This is the latest version of Java my Mac is running right now.

    So right now I am stuck and have no idea what to do, so I'm hoping someone out there is willing to help me out! Thanks!
     
  2. I installed Java 7 and went to System Preferences, clicked on the Java Icon and this came up:

    [​IMG]

    I went back to Terminal typed "java -version" and this came up:

    [​IMG]

    Went to http://www.java.com/en/download/installed.jsp and it says that I have it installed.

    [​IMG]

    I try and start the start.command file I made for BungeeCord and I still get the same error.
     
  3. type java7 instead of java. Duh.
     
  4. Get a proper server and don't host at home. Duh.
     
    • Agree Agree x 1
    • Disagree Disagree x 1
  5. Where do I type java7?

    Some people would like to save money.
     
  6. Did you uninstall the previous version of Java that was on the system?
     
  7. I think I have deleted everything that was Java on my computer and I reinstalled it again which ended up with Java 6 for some reason
     
  8. On tour startup script, replace java with java7.
     
  9. I replaced java with java7 and I get an error:

    start.command: line 3: java7: command not found

    logout

    [Process completed]

    So anyways, is my startup script supposed to look like this?

    #!/bin/bash
    cd "$( dirname "$0" )"
    java7 -Xms1024M -Xmx1024M -jar BungeeCord.jar -o true
     
  10. When you execute java -version, does it now tell you it is running Java 7, or are you still sitting on 6 as your default?
     
  11. Keep in mind, I have no experience with OSX whatsoever, but I have a couple ideas since it is Unix based afterall.

    Try to execute the following commands and see if you can change the default Java version:

    Code (Text):
    update-alternatives --config java
    or
    Code (Text):
    alternatives --config java
     
  12. doesn't work on mac, those are debian commands. Mac is based on BSD. http://stackoverflow.com/questions/...ac-os-x-but-terminal-is-still-using-version-6 here, this is for you.
     
    • Like Like x 1
  13. Good to know :) thought I would throw out an idea
     
  14. When I type java -version I get

    java version "1.6.0_45"
    Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
    Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)
     
  15. Preferences -> Java.

    If it's not there, go redownload java 7.
     
  16. [​IMG]

    So is it this one?
     
  17. I would click on java.
     
    • Agree Agree x 1
  18. A window comes up that says Java Control Panel that looks like this

    [​IMG]