Recently we tried to create a Jar file from IntelliJ IDEA 2017.3 using Maven.
After building the artifact, we got the error no main manifest attribute, in $FILE.jar while executing the jar file created by IntelliJ.
After extracting the jar we observed that there was a manifest file but not the one that was specified while creating the artifact.
After some serious google-fu, we got to the following bug ticket.
Apparently, IntelliJ does not read the manifest file that is located in the src/main/java folder! Working Solution: As suggested in the ticket, we moved the META-INF folder to src/main/resources and rebuild the artifact.
One of the applications we recently build on IntelliJ IDEA was using JavaFX. When executing the application from inside IntelliJ, it would work as expected and load the GUI. On the other hand, when executing the jar file from the terminal, we would get the following error: $ java -jar…
As we were setting up a machine that would be used for software development, we came to the need of installing a Java Development Kit (JDK). There are two popular choices on the web between the OpenJDK and the Oracle JDK, we decided to go with the OpenJDK option which…
If the project is in C++ and uses mysql then install sudo dnf install mysql++-devel; If the project is in C/C++ and you are missing talloc.h install sudo dnf install libtalloc-devel; Set your name and email for all git projects git config --global --edit Then fill-in the configuration file similar…
The above solution works also for the following error `Error: Invalid or corrupt jarfile google_hack.jar`