Unexecutable .exe file (JPackage and JavaFX)

Hello, I've been messing around with JavaFX recently and I wanted to deploy it with JPackage. Everything works great but I can't really run the .exe file JPackage generates (when I try to run .jar file from jlinkimage folder it tells me the path for Image is incorrect, but everything works in my IDE), I keep all of my resources in a resources directory.
jlink {
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'Installer'
}
}

jlinkZip {
group = 'distribution'
}
jlink {
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'Installer'
}
}

jlinkZip {
group = 'distribution'
}
6 Replies
JavaBot
JavaBot15mo ago
This post has been reserved for your question.
Hey @fertiz! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
fertiz
fertizOP15mo ago
and please ping me if replied
JavaBot
JavaBot15mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.
dan1st
dan1st15mo ago
What happens when running it? Can you show the image relevant code?
fertiz
fertizOP15mo ago
well it is exe file so even if I try running it with cmd it just doesnt show anything nvm fixed, after building jar it somehow relocated my resources to another directory
JavaBot
JavaBot15mo ago
Post Closed
This post has been closed by <@723844486974668810>.

Did you find this page helpful?