This repository has been archived by the owner on Mar 5, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package seedu.address; | ||
|
||
import javafx.application.Application; | ||
|
||
/** | ||
* The main entry point to the application. | ||
* | ||
* Addressbook is unable to run in a jdk11 environment using MainApp class | ||
* directly and it gives an error of below: | ||
* | ||
* Error: JavaFX runtime components are missing, and are required to run this application | ||
* | ||
* This error comes from sun.launcher.LauncherHelper in the java.base | ||
* module. The reason for this is that the Main app extends Application | ||
* and has a main method. If that is the case, the LauncherHelper will | ||
* check for the javafx.graphics module to be present as a named module. | ||
* If that module is not present, the launch is aborted. | ||
* | ||
* One simple workaround is to have a separate main class that doesn't | ||
* extend Application. Hence it doesn't do the check on javafx.graphics | ||
* module, and when the required jars are on the classpath, it works fine. | ||
*/ | ||
public class Main { | ||
public static void main(String[] args) { | ||
Application.launch(MainApp.class, args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters