Plugin work on test server, but doesn't on real one

Discussion in 'Spigot Plugin Development' started by arsneg, Jul 11, 2015.

  1. Hello, I'm quiet new in plugin development. My problem is very strange for me. I wrote plugin that only has one command that write something in file (It's something like recruiter-supporting plugin, very simple).
    So on production and test server I use the same Spigot (1.8.7 last snapshot). When I try to load my plugin on test server it's work good. When I load it on production one, server after restart doesn't even see this (or I think so, cause in /pl and console output my plugin doesn't show), but again on test server all work and load good. Any suggestions?
     
  2. Your production server most likely has an outdated Java version. Java is backwards compatible:
    e.g. compiled with Java 6 will work on 6, 7 & 8.
    e.g compiled with Java 8 will only work on 8.
     
    • Like Like x 1
  3. connor12568

    Supporter

    What java version did you compile it with, and what java version is running on the server? (Also showing us the error would be helpful. If there is any error in the console on startup.)
     
    • Like Like x 1
  4. Sounds like a truth. I use jdk 8 version in dev and testing, but my server hosting provider can use old one. I'll try to recompile it with 6 and 7 jdk. Thanks.
     
    #4 arsneg, Jul 11, 2015
    Last edited: Jul 11, 2015
    • Winner Winner x 1
  5. connor12568

    Supporter

    Glad we could help!