I am using IntelliJ and I would like to package a library I found into a jar
for my project. Said library was found online and only contains java
files without a main
class. Before someone flags this for being a duplicate, it is not. All other questions are with projects that have a main
class. I tried following https://stackoverflow.com/a/45303637/10002144, but it does not work because I get to a point where it says "META-INF/MANIFEST.MF file not found in 'libname.jar'. I also tried making a gradle project and building it, but it simply creates a jar
that is only 297 bytes long, so obviously that doesn't work.
What can I do in my case?