> >How do i create a package (.jar file) out of it using the "jar"
> >utility and set the main class Alpha or DeltaOne
>
> If everything else fails, read the JAR tutorial at:
>
> http://java.sun.com/docs/books/tutorial/deployment/jar/
Thanks for the help
I created a manifest.txt file with the contents
------------------------------------------------------------------------------
Manifest-Version: 1.0
Created-By: 1.5.0_01-b08 (Sun Microsystems Inc.)
Main-Class: one.Alpha
------------------------------------------------------------------------------
The classes Alpha.class and DeltaOne.class were in the same directory
In the directory i gave the command: -
jar -cfm one.jar manifest.txt Alpha.class DeltaOne.class
But when i executed the jar file
java -jar One.jar
It gave the exception
Exception in thread "main" java.lang.NoClassDefFoundError: one/Alpha
Any help
Thanks
Pradyut
http://pradyut.tk
http://spaces.msn.com/members/oop-edge/
http://groups-beta.google.com/group/oop_programming
India
Pradyut - 16 Feb 2006 07:41 GMT
>> >How do i create a package (.jar file) out of it using the "jar"
>> >utility and set the main class Alpha or DeltaOne
[quoted text clipped - 11 lines]
> Main-Class: one.Alpha
> ------------------------------------------------------------------------------
Only Alpha has to be written i.e the manifest line should be
Main-Class: Alpha
Thanks

Signature
Pradyut
http://pradyut.tk
http://groups.yahoo.com/group/d_dom/
http://groups-beta.google.com/group/oop_programming
India