使用java.exe执行静默模式

我想知道是否有办法执行“ java.exe”作为后台进程(静模式执行)

例如:java -cp. MyClass arg1

我想以上述语句作为后台进程,不用打开命令窗口

解决方法

Windows下,使用javaw.exe而不是java.exe.请参阅 here链接,相关位复制在这里

The javaw command is identical to java,except that with javaw there is no associated console window. Use javaw when you don’t want a command prompt window to appear. The javaw launcher will,however,display a dialog Box with error information if a launch fails for some reason.

相关文章

最近看了一下学习资料,感觉进制转换其实还是挺有意思的,尤...
/*HashSet 基本操作 * --set:元素是无序的,存入和取出顺序不...
/*list 基本操作 * * List a=new List(); * 增 * a.add(inde...
/* * 内部类 * */ 1 class OutClass{ 2 //定义外部类的成员变...
集合的操作Iterator、Collection、Set和HashSet关系Iterator...
接口中常量的修饰关键字:public,static,final(常量)函数...