怎样将class文件变成可执行的jar文件。
我用的是jdk1.42,在c盘下建了个文件夹helloworld,里面有helloworld.java,helloworld.class,还有MANIFEST.MF,其内容为:                   
 manifest-Version:            1.2                   
 Created-By:            1.4.2            (Sun            Microsystems            Inc.)                   
 Main-Class:            helloworld                               
 运行c:\helloworld                  > jar            cfm            helloworld.jar            MANIFEST.MF      helloworld.class                              
 双击helloworld.jar,但总是提示:fail            to            load            main-class            manifest            attribute            from            c:\helloworld\helloworld.jar    
 如何解决?
------解决方案--------------------要在MANIFEST.MF设置main-class
------解决方案--------------------首先你的Main-Class要是public类,还要有main()函数 
 其次:注意你的Main-Class类名的大小写,你的*.java是什么名字,这里就写*部分. 
 如果有包名也要带上.