TheInfiniteKind/appbundler

Support max JVM version

Opened this issue · 1 comments

One way would be to support the java_home syntax 11*, so that any version 11 is accepted, but not anything newer.
Another option would be to be able to specify a max version, so that you can also state that you support 11, 12 or 13, but not 14.

I too need this because Java SE 8 has some features (com.apple.eawt) that are implemented in a different way starting with Java SE 9. If the code loads with 9 and beyond, then a nasty failure happens because classes in that package can't be loaded. If I can ever figure out how to create a branch and pull request, then I'll implement this. I've created an implementation for this in an older version of this project and it probably wouldn't take too long to reimplement it for the current head of master. Probably less time than figuring out pull requests. BTW, Java SE 8 has support through 2030. No other release comes close to that level of support.