I'm working on my first swing app, and after a big headache and research I ended up here, as I said, I did a lot of research and tried many things but unfortunately nothing worked for me
In netbeans everything works correctly and I have no issues, and also when I clean and build the project, the problem is when I send the .jar
file to a friend. He can't open it, only if he have JDK 16
installed
I'm wondering if it's a problem with libraries not building correctly or something
I tried adding this plugin to pom.xml
:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>NewJFrame</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
But it didn't work