Skip to content

Commit 2533ea7

Browse files
committed
feat: add warning about missing javafx on older JRE versions
1 parent 709b756 commit 2533ea7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0"?>
22
<project name="kmttg" basedir="." default="all">
3-
<property name="rversion" value="v2.9.2-l"/>
3+
<property name="rversion" value="v2.9.3-l"/>
44
<tstamp/>
55
<property name="bversion" value="${DSTAMP}-${TSTAMP}"/>
66
<property name="lib" value="lib"/>

src/com/tivo/kmttg/gui/JavaFX.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public static boolean checkForJavaFX() {
2121
Color c = javafx.scene.paint.Color.BLUE;
2222
} catch (NoClassDefFoundError e) {
2323
try {
24+
int majorVersion = getJreMajorVersion();
25+
if (majorVersion < 11) {
26+
JOptionPane.showMessageDialog(null, "Your JRE is missing javafx. KMTTG can auto download javafx for JRE 11+ however you ar running a older version.");
27+
}
28+
2429
final File currentJar = new File(
2530
JavaFX.class.getProtectionDomain().getCodeSource().getLocation().toURI());
2631
String javaFXPath = findJavaFXLib(currentJar);

src/com/tivo/kmttg/main/config.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import com.tivo.kmttg.httpserver.kmttgServer;
4343

4444
public class config {
45-
public static String kmttg = "kmttg v2.9.2-l";
45+
public static String kmttg = "kmttg v2.9.3-l";
4646

4747
// encoding related
4848
public static String encProfDir = "";

0 commit comments

Comments
 (0)