Solved Name not defined!

Discussion in 'Spigot Plugin Development' started by delanootje, Sep 28, 2016.

  1. Yeah you do, that's the error you showed us. Either run your server with Java 8 or recompile the plugin using Java 7
  2. "java.lang.UnsupportedClassVersionError: pw/delano/tutorial/tutorial : Unsupported major.minor version 52.0"

    "Unsupported major.minor version 52.0 comes when you are trying to run a class compiled using Java 1.8 compiler into a lower JRE version e.g. JRE 1.7"
  3. I changed The Java version and i get the same error
  4. What Java version are you running on the server? You can check that by executing "java --version"
    Maybe you have both Java 7 and Java 8 but you are using 7, not 8 ;)
    • Agree Agree x 1
  5. If you use Eclipse, you can right click "Properties" and then select Java Compiler.
    Uncheck the checkbox if it is checked and change it to whatever your server is running.
  6. I tried but that command doesn't exist or do i need to type it ingame?
    • Funny Funny x 1
  7. Ok Guys! thanks already i need to go i'll be back in 2 hours!
  8. Well... i assumed that you was using maybe a Linux server, is that true? or are you running spigot server on windows?
    That command should be executed in the terminal, (a.k.a. cmd), not in game :p
  9. My server is hosted by serverbuilds and if i type it in the console nothing happens
  10. Ok Thnx! Suddenly it just works! idk how, But thank y'all!