0

I'm trying to export my Intellij project as an executable jar, but I doesn't find my main class when i try to start it. The only way i found to even start my program is to delete everything from meta-inf except for the manifest file, but then my program can't access a lot of imported libraries. Any help would be much appreciated.

Ahtap
  • 9
  • 2
  • Does this answer your question? [How to build jars from IntelliJ properly?](https://stackoverflow.com/questions/1082580/how-to-build-jars-from-intellij-properly) – Dropout Nov 19 '21 at 14:29
  • Are you using any kind of build tool? I didn´t find an option to export a simple java project to an executable jar. – mdh Nov 19 '21 at 14:30
  • 1
    @mdh you can build a simple Java project into a jar as well – Dropout Nov 19 '21 at 14:32
  • 1
    @Dropout That's the exact post i used for building my jar. What I didnt understand though was, that they wanted me to "You have to change manifest directory: \src\main\java replace "java" with "resources" \src\main\resources" So i just didn't do that. ^^ – Ahtap Nov 19 '21 at 14:38
  • 1
    @Dropout yes for sure but i didn´t find the option by myself. thanks for posting the link – mdh Nov 19 '21 at 14:40
  • Please provide enough code so others can better understand or reproduce the problem. – Community Nov 23 '21 at 06:36

0 Answers0