Open sjiang1 opened 7 months ago
Over the Spring break, I tried for an hour to compile the project on MacOS, but I didn't make it work. Decided to avoid Mac for this project.
Today, I found one promising document for deployment: https://netbeans.apache.org/tutorial/main/kb/docs/java/javase-deploy/
Export the Java application in Eclipse using "runnable JAR"
The Jar was created but nothing happened after clicking the JAR file.
For an out of sync error:
Refreshing the project in Eclipse will fix this error.
Figured out a way to run the runnable jar file from command line:
java -jar C:HeroStats.jar
Checked a video: https://www.youtube.com/watch?v=F8ahBtXkQzU for creating an executable jar file.
After generating the runnable JAR file, add JavaFX dll libraries into the JAR:
In Git Bash:
/c/Program Files/Java/jdk-19/bin
./jar.exe uf /c/Users/Siyuan\ Jiang/HeroStats/StormStats/runnable/HeroStats.jar /c/Users/Siyuan\ Jiang/eclipse/openjfx-21.0.2_windows-x64_bin-sdk/javafx-sdk-21.0.2/bin/*.dll
Made a folder: src/resources/
to store the database file under the runnable. The jar was started but exited with the error:
User Story Neilo wants to use HeroStats but doesn't know anything about Java programming. To use HeroStats, he wants to install HeroStats easily so that he can use HeroStats right away.
Persona Neilo Feature Provide an installation package with an easy process Business Value Neilo can use HeroStats right away
Tasks
Acceptance Criteria