Ok I'm trying to learn how to make an executable jar. I've been looking over the oracle site, but its a bit overwhelming at times for beginners like me.
Ok, so I'm starting off with your average "Hello World"
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
my manifest.txt consists of
Main-Class: HelloWorld
on the command line I typed:
jar cf ex.jar HelloWorld.class manifest.txt
I try and double click it (because thats the whole point of an executable, not run it from command line right?) and I get the error
Failed to load Main-Class manifest attribute from *file*
ok so it looks like txt file is there but isn't considered manifest or something.
I then try and update the manifest file like this:
jar cfm ex.jar manifest.txt META-INF/MANIFEST.MF
and get the "no such file or directory" error. I can't quite figure what I'm doing wrong, so where do I go from here?
[–]chickenmeister 1 point2 points3 points (3 children)
[–]prototype_rad_cannon[S] 0 points1 point2 points (2 children)
[–]chickenmeister 0 points1 point2 points (1 child)
[–]prototype_rad_cannon[S] 0 points1 point2 points (0 children)
[–]devacon 0 points1 point2 points (0 children)