| Java |
| jar help |
| |
| |
SP wrote: > hi > i have been trying to make a jar file for the following files > > hello.java > hello.class > with the following command > > jar cf hello.jar hello.* > > it is created and with > jar tf hello.jar > > i am able to see the list of files which is in this case > META-INF/ > META-INF/MANIFEST.MF > hello.class > hello.java > > but it doesn't run with > java -jar hello.jar > > following error appears > Failed to load Main-Class manifest attribute from > hello.jar > > i tried to fix it with > > jar cfm hello.jar mymainclass hello.*(after creating mymainclass with the > entry Main-Class: path.hello) > > to no avail! > and another thing is although the dir META-INF is shown as above it is not > created in the folder..where is it created?? > > help please > > Greetingz > Sunil > >
To add to the other two responses, you might find a tool such as JavaJar useful: http://pivotonic.com/
|
| System |
|
|