隐藏控制台窗口时使用批处理文件来启动Java程序? [英] hide the console window when use batch file to launch a java program?

查看:262
本文介绍了隐藏控制台窗口时使用批处理文件来启动Java程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用批处理推出这样我的Java应用程序

I use a batch to launch my java application like this

start /min java -splash:resources\images\splash\splash.gif com.myproj.MyProjApp
exit

还有任务栏上图标。我要的是隐藏控制台窗口,只有当我点击批处理文件添加一个图标是我在任务栏上的应用程序?

There is still a icon on the taskbar. what I want is hide the console window and only add ONE icon which is my application on the taskbar when I click that batch file?

推荐答案

使用

javaw -splash:resources\images\splash\splash.gif com.myproj.MyProjApp

而不是你那里。

这篇关于隐藏控制台窗口时使用批处理文件来启动Java程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆