-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for Java version #3310
Comments
I fully support this! It should be a must for the 4.1 release. |
refs #3073 |
@tobiasdiez Can you comment on
|
Some more info since java version numbers might not have a consistent scheme throughout different major versions and different vendors: 01:32 < halirutan> Hey. Beside the simple
The |
Thanks @halirutan for having a look at this issue! Concerning your questions,
I would say it is ok to hard-code those checks. You can try to be fancy and include it in the build settings file but I don't think that is worth the overhead.
Minimal version is the most important right now; and a check if Java 9 is used
Yes, some warning messages are displayed if you run FXML files with a different version than they were created with (there is a "version" string stored somewhere in the FXML code). But I have never seen problems with that since the FXML parser is relatively stable. So I would leave this out.
Good question 😄 Probably by having a look at the recent issue reports that were solved by updating Java and taking a higher version as the minimal requirement. |
This is now implemented. |
Lately, we get a lot of issue reports that can be fixed with a simple update to a newer Java version. I propose that we add a check at the start that informs the user that his java version is outdated. (Maybe helpful https://stackoverflow.com/questions/2591083/getting-java-version-at-runtime or https://stackoverflow.com/questions/4638994/how-to-know-jdk-version-from-within-java-code).
Moreover, if I remember correctly then the installer (on Windows) also installs the JRE. Is it possible to configure the installer to also update it, when an older version is already installed?
Finally, we should also display a warning message that JabRef does not support Java 9 at the moment.
The text was updated successfully, but these errors were encountered: