Hi, On Jul 22, 11:55 pm, Pablo Derbez <[email protected]> wrote: > I try to make a JAR file but I'm having problems with the main class. > I am using Windows. When I write in the command prompt "jar cfe > MyHelloProject2.jar Hello.class MyHelloProject2" the JAR file appears, > but i get the following error message: > > 'Could not find the main class: Hello.class. Program will exit.' > > I have tried with many alternatives, (such as MyHelloProject2/ > Hello.class) but no route seems to be the correct one. I don't know > what is the problem.
I have not used the "-e" Option, since it seems to be new in the 1.6.0 JDK. But have you tried to use just Hello instead of Hello.class? I could also imagine that the package hierarchy would be imported and necessary when you give the main class. > Also, it would be of great help if you could explain me how to extract > the manifest file from the jar archive. e.g. jar xf kSar-4.0.10.jar META-INF/MANIFEST.MF > HTH Ewald --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
