DailyStruggle / RTP

fun with spatial math
25 stars 6 forks source link

Consider compiling the plugin with a lower version of java #9

Closed iMrDJAi closed 2 years ago

iMrDJAi commented 2 years ago
[09:26:12 ERROR]: Could not load 'plugins\RTP-1.3.23.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: leafcraft/rtp/RTP has been compiled by a more recent version of the Java Runtime (class file version 60.0), this version of the Java Runtime only recognizes class file versions up to 56.0
DailyStruggle commented 2 years ago

the newer java versions are more efficient and it seems I can run every version of spigot back to 1.8 using the latest java version.

Is there a particular reason to use older java versions?

iMrDJAi commented 2 years ago

@DailyStruggle Paper 1.13.2 refused to work with the most recent version of java. Am I missing something?

iMrDJAi commented 2 years ago

I'm getting Unsupported Java detected (61.0). Only up to Java 12 is supported. when running spigot 1.13.2 on java 17.

DailyStruggle commented 2 years ago

the first problem is that several softdepends are using newer java versions and the plugin won't compile without removing a bunch of plugin checks.

the second problem is that I used several methods introduced in newer java versions and it's tedious to revert.

DailyStruggle commented 2 years ago

I realize now ... I compiled my server without the version check

iMrDJAi commented 2 years ago

@DailyStruggle You mean this check? https://www.spigotmc.org/wiki/buildtools/#dev

Not sure how to remove it from Paper as there are no official buildtools for it.

DailyStruggle commented 2 years ago

don't edit server source code for a plugin setup process. It's safer to recompile the plugin.

DailyStruggle commented 2 years ago

I'm not doing this on v1 because I can't as easily decouple the softdependencies from the plugin

iMrDJAi commented 2 years ago

@DailyStruggle Alright! No problem. Just focus on v2, I'm really excited about it!

DailyStruggle commented 1 year ago

working compilation in java 8 on the V2 branch, supporting a better form of reflection for location checks so that softdependencies can be external to the main plugin.