你的意思是运行时打的命令?
做成JAR直接点击来RUN吧如果是GUI的程序
如果是CONSOLE的也只能打开那个DOS WINDOW来啦

解决方案 »

  1.   

    或者你用个 wrapper 做一个可执行文件出来
    双击运行
      

  2.   

    如何把一个文件夹也用jar打包进去?比如 A目录下有
         A1.class
         A2.class 
         A3.class
         xx/xxx/xxx1/x1.class
                xxx2/x2.class
        我想把A里面的东西都打包成jar可以吗?
    具体如何打包?
      

  3.   

    nanman(南蛮—50万人使用的最强五笔作者)说的是对的,用JAVAW。写一个.bat文件:      @echo off
          start javaw 你的CLASS文件所在位置(是相对路径,比如.BAT文件在c:\下,enter.class文件在c:\classes下,就写成 classes.enter
      

  4.   

    to:shrek_cn(一米阳光) 
    帮助是看,因为我自己试了一下不行。
      

  5.   

    If it's a text-based program, use java. 
    If it's graphical but prints text at any point, use java 
    If you're error checking, use java 
    If it's purely graphical, and you need to increase the speed, use javaw. 
      

  6.   

    还是不太明白
    我的是GUI的程序,是通过编译器执行的
      

  7.   

    用JAR打包:1. 在目录下建一个manifest.mf文件,内容指定你的包中的主类,如下:
    Main-Class: frameApp (回车)注意大小写,冒号后边的空格,行末的回车!2.JAR命令:jar frameApp.jar manifest.mf frameApp最后一个frameApp是你要打包的目录,如果是多个,可以用空格分隔开!!