nus-cs2103-AY2122S2 / forum

13 stars 1 forks source link

JNI error after creating a fat JAR file #161

Closed Justinnje closed 2 years ago

Justinnje commented 2 years ago

image

Hii,

I need some help. After creating the fat JAR file, i tried to open it only to receive this error message.

I changed my mainClassName to be "duke.Launcher" and ran "gradlew clean shadowJar" as instructed. Both my java - version and javac -version are 11.0.9 and I indicted in the dependencies of the build.gradle file that the javaFx version is 11. I have tried running the command again but experienced the same issue.

Any help will be appreciated thanks!!

damithc commented 2 years ago

@Justinnje in case this info is helpful for someone replying to this thread later, are you able to run the AB3 JAR file?

Justinnje commented 2 years ago

Hi prof, i have not tried AB3 yet. But I have resolved the issue.

What i did was download the jdk 11.0.9 file again from oracle. Then i think there were some updates or something that took place, im not too sure as well. But after i did that, the jar file now executes.