用jbuilder 8以上的版本做,然后自己看看,学习学习咯。

解决方案 »

  1.   

    jar  cvfm  test.jar  manifest.mf  /test
      

  2.   

    大家看我下面哪里错了:假设我只有一个test.class,java test可正常运行,是不是我要建一个文件夹mytest,把test.class放进mytest目录,再
    另外编一个manifest.mf文件,里面写上
    Manifest-Version: 1.0
    Created-By: 1.4.0 (Sun Microsystems Inc.)
    Main-Class: mytest.test
    然后输入下面的命令:
    jar  cvfm  test.jar  manifest.mf  test  
    然而生成的test.jar双击时却提示找不到main class
      

  3.   

    不用啦
    你这样:
    jar cvfm test.jar menifest.mf test.class
    就行了
      

  4.   

    编一个manifest.mf文件,里面写上
    Manifest-Version: 1.0
    Created-By: 1.4.0 (Sun Microsystems Inc.)
    Main-Class: test然后输入下面的命令:
    test.class与.mf都同一个目录下,不要建立目录。
    jar  cvfm  test.jar  manifest.mf  test  然而生成的test.jar双击时即可运行。
      

  5.   

    jar  cvfm  test.jar  manifest.mf  test.class少了这个