On newest Debian, with openJDK 28 the installer crashes with:
Exception in thread "main" java.lang.NumberFormatException: For input string: "28-ea"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:541)
at java.base/java.lang.Integer.parseInt(Integer.java:638)
at installer.Install.main(Install.java:65)
what corresponds to source code (from git):
(...)
public static void main(String[] args)
{
boolean isGUI = args.length == 0;
String javaVersion = System.getProperty("java.version");
int javaMajorVersion = parseInt(javaVersion.split("\\.", 2)[0]); <-- here
if(javaMajorVersion < 11)
(...)
and to changed Debian java version numbering scheme which is now:
java --version
openjdk 28-ea 2027-03-23
OpenJDK Runtime Environment (build 28-ea+13-1-Debian)
OpenJDK 64-Bit Server VM (build 28-ea+13-1-Debian, mixed mode, sharing)
Since Java versioning style is not cast in stone please catch this exception and turn it into a warning like "Cannot determine Java version. Minimum version is 11, current is: ...." and continue with the process.
I do really love this program, thank You for it.
Best regards,
Tomasz Sztejka.