nus-cs2103-AY2425S1 / forum

12 stars 0 forks source link

Issue with running my .jar file on windows #388

Closed WinstonJin closed 2 hours ago

WinstonJin commented 2 hours ago

Hi I am a Mac user and all my Mac friends can run my Winde.jar on their macbooks no issue but my Windows friends have an issue.

Here are the several error messages from them photo_2024-09-20 22 21 00

photo_2024-09-20 22 21 08

My .jar file can be found in my release on my github page (https://github.com/WinstonJin/WindeBot)

Thank you!

Incogdino commented 2 hours ago

My wild guess after looking at your build.gradle file is that the dependencies for javaFX for windows (and linux) were not included.

    implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
    implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
    implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
    implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
    implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
    implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
    implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
    implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'

Try adding these, to your dependencies inside build.gradle to support windows and linux.

WinstonJin commented 2 hours ago

Oh yea thats the issue thanks!