Removed checked expections (now they are unchecked). Added better detection of JavaFX.

This commit is contained in:
nathan 2016-02-14 17:49:02 +01:00
parent c8517f65e7
commit e38071475a

View File

@ -66,6 +66,10 @@ class GtkSupport {
boolean shouldUseGtk2 = GtkSupport.FORCE_GTK2 || JAVAFX_COMPATIBILITY_MODE;
alreadyRunningGTK = JAVAFX_COMPATIBILITY_MODE;
// for more info on JavaFX: https://docs.oracle.com/javafx/2/system_requirements_2-2-3/jfxpub-system_requirements_2-2-3.htm
// from the page: JavaFX 2.2.3 for Linux requires gtk2 2.18+.
// in some cases, we ALWAYS want to try GTK2 first
if (shouldUseGtk2) {
try {