What version of Java should plugins be built for?

Discussion in 'Plugin Development' started by tips48, Jun 10, 2014.

Thread Status:
Not open for further replies.
  1. Is it still Java 5? 6? 7/8? Thanks guys.
     
  2. Offline

    xTigerRebornx

  3. Offline

    AoH_Ruthless

    xTigerRebornx tips48
    Really? I thought almost everybody used Java 7, and the changes between 6 and 7 don't significantly affect Bukkit API (If I recall, it was mostly swing, IO, networking and security ... in programming language itself, most significantly introduction of strings in switch statements, try-with-resources and improvements with exception catching and generic instance creation with type inferences). So basically, I guess either one is safe. Java 5 is outdated and Java 8 is too new, barely anybody uses it in the Minecraft world.
     
  4. Offline

    Adriani6

    I compile all plugins in 1.6.
     
  5. Offline

    xTigerRebornx

    AoH_Ruthless Its not that the API is affected by changes, its that servers may be running 6 and therefor cannot support a plugin with features from 7
     
  6. Offline

    RingOfStorms

    I think java 7 is suffice. If people are still on java 6 then they should be forced to update.. like really java 8 is already out and people wont even go to 7.
     
  7. Offline

    iMurder

    I personally use Java 7, and for all the plugins I have made for people in the past, None have been running java 6, so it's more or less pretty safe to work with 7.
     
  8. Offline

    xTrollxDudex

    tips48
    Java 7. I don't care if the server owner complains, take that to bukkit help, or update java.
     
    Garris0n likes this.
  9. Offline

    es359

    I use Java 7.
     
  10. Offline

    RawCode

    7 or 8

    some server owners uses old java, you should ignore such "bug" reports or reply with "update JRE"
     
  11. Offline

    1Rogue

    When I'm working directly with someone or it's not a public release, I'll go with Java 8.

    Publicly released plugins can usually get away with Java 7, if you look at mcstats for the distribution of java versions, you can see what you'll be cutting out by not using Java 6: http://mcstats.org/global/

    Though this varies quite a bit, for instance one of my plugins has only 4 people using Java 6: http://mcstats.org/plugin/PlayTime
     
    fireblast709 and Garris0n like this.
Thread Status:
Not open for further replies.

Share This Page