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
50 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,26 @@ | ||
package seedu.address; | ||
|
||
import javafx.application.Application; | ||
|
||
/** | ||
* The main entry point to the application. | ||
* | ||
* This is a workaround for the following error when MainApp is made the | ||
* entry point of the application: | ||
* Error: JavaFX runtime components are missing, and are required to run this application | ||
* | ||
* The reason is that MainApp extends Application. In that case, the | ||
* LauncherHelper will check for the javafx.graphics module to be present | ||
* as a named module. We don't use JavaFX via the module system so it can't | ||
* find the javafx.graphics module, and so the launch is aborted. Hence, | ||
* adding the javafx runtime dependency is not enough in this case. | ||
* | ||
* This is more like a JDK 11 problem which cannot be solved elegantly. | ||
* Workaround this by having a separate main class (Main) that doesn't | ||
* extend Application to be the new entry point of addressbook. | ||
*/ | ||
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