![]() Manifest.getMainAttributes().put(_VERSION, "1.0") įinal String dir = System.getProperty("user.dir") Public static void run() throws IOException not sure if this logic is right but just letting you know. Reason i guess i added to that, though i'm not sure if it was necessary or not, was because it has a file filter which can tell which files are hidden or not and thing is without it it was adding like DS_STORE(which is hidden and i guess unnecessary) to the jar. ![]() thanks again!įyi I had the commons-io-2.4 jar referenced into my build path that can be downloaded here: Commons IO - Download Commons IO ![]() i tried and i tried and just couldn't get it to work and confused. if anybody can like get it to work maybe try out a hello world for testing purposes and get it to work that would be so sweet. so it's essentially just one folder with a bunch of class files in there. ![]() am i doing something wrong? And btw, the file (that contains all the class files) do not have any directories in them. ![]() I took some code i found here: java - How to use JarOutputStream to create a JAR file? - Stack Overflow and apparently it didn't specify the main class so I specifically added it myself. When I run the jar file via command line, it gives me "Could not find or load main class. Why is my create jar file programatically not working can anybody help? So doing this does create a jar file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |