mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] Предупреждение об отсутствии JavaFX теперь ошибка
This commit is contained in:
parent
48a2a8346a
commit
c969b16391
3 changed files with 8 additions and 4 deletions
|
@ -42,9 +42,9 @@ public Path process(Path inputFile) throws IOException {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//Find javaFX libraries
|
//Find javaFX libraries
|
||||||
if(!IOHelper.exists(javaJModsPath.resolve("javafx.base.jmod"))) LogHelper.warning("javafx.base.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
if(!IOHelper.exists(javaJModsPath.resolve("javafx.base.jmod"))) LogHelper.error("javafx.base.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
||||||
if(!IOHelper.exists(javaJModsPath.resolve("javafx.graphics.jmod"))) LogHelper.warning("javafx.graphics.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
if(!IOHelper.exists(javaJModsPath.resolve("javafx.graphics.jmod"))) LogHelper.error("javafx.graphics.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
||||||
if(!IOHelper.exists(javaJModsPath.resolve("javafx.controls.jmod"))) LogHelper.warning("javafx.controls.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
if(!IOHelper.exists(javaJModsPath.resolve("javafx.controls.jmod"))) LogHelper.error("javafx.controls.jmod not found. Launcher can be assembled incorrectly. Maybe you need to install OpenJFX?");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
package pro.gravit.launchserver.binary.tasks.exe;
|
||||||
|
|
||||||
|
public interface BuildExeMainTask {
|
||||||
|
}
|
|
@ -12,7 +12,7 @@
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
public class Launch4JTask implements LauncherBuildTask {
|
public class Launch4JTask implements LauncherBuildTask, BuildExeMainTask {
|
||||||
public static final String DOWNLOAD_URL = "http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"; // Oracle
|
public static final String DOWNLOAD_URL = "http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"; // Oracle
|
||||||
private static final String VERSION = Version.getVersion().getVersionString();
|
private static final String VERSION = Version.getVersion().getVersionString();
|
||||||
private static final int BUILD = Version.getVersion().build;
|
private static final int BUILD = Version.getVersion().build;
|
||||||
|
|
Loading…
Reference in a new issue