I made a simple gui that let's me transfer files from a folder to another folder and I packed it to .jar file using the command jar cfm in the command prompt but when I double click the .jar file that I made it shows a pop up title Java Virtual Machine Launcher with a message A Java Exception has occured but when I run in in the command prompt using java -jar then the name of the .jar file it works perfectly fine I'm sure that it has a MANIFEST.txt file. I'm just confuse
#.jar Package
1 messages · Page 1 of 1 (latest)
<@&987246487241105418> please have a look, thanks.
@cosmic meteor
If you double-click on a jar file, and your Java application does not start, your .jar association has been hijacked. You can fix the problem with Jarfix. https://johann.loefflmann.net/en/software/jarfix/index.html
.dioxin • used /tag id: jarfix reply-to: @framedlynx
·
Jarfix
yeah seems like the problem isnt your jar, but your java installation
oh ye it works now but will the jarfix always start whenever I turn on my pc or it doesn't execute when I don't double click it?
thanks btw
You only need to run it once.
okay okay thank you