가능한 중복 :
Is there a way to the hide win32 launch console from a Java program (if possible without JNI)분리 자바 응용 프로그램
나는 창문에 배치 파일 내 자바 스윙 응용 프로그램을 실행, 콘솔/명령 창이 동안 열려 내 Java 응용 프로그램이 실행 중입니다. 이것은 내가 갖고 싶지 않은 작업 표시 줄에 여분의 창을 만듭니다. 그러나 명령 창을 닫으면 Java 응용 프로그램이 중지됩니다. 배치 파일이나 명령 줄 매개 변수 또는 응용 프로그램의 코드 변경을 통해 응용 프로그램이 계속 실행되는 동안 내 스윙 응용 프로그램과 콘솔 창을 닫은 후에 java.exe를 종료하는 방법이 있습니까?
이public static void main(String args[]) {
ApplContext applContext = new ApplContext();
Throwable error = null;
try {
applContext.setUserConfigDir(args.length>0 ? args[0] : null);
applContext.loadData();
ApplTools.initLookAndFeel(Parameters.P_NIMBUS_LAF.of(applContext.getParameters()));
} catch (Throwable e) {
error = e;
}
// JWorkSheet is a JFrame.
new JWorkSheet(applContext, error).setVisible();
}
코드 스 니펫을 참조하십시오. 바람직하게는 주요 방법. – jjnguy
또한 확인해보십시오. http://stackoverflow.com/questions/649634/how-do-i-run-a-bat-file-in-the-background-from-another-bat-file – daveb
이것은 dup이 질문 : http://stackoverflow.com/questions/264687/is-there-a-way-to-the-hide-win32-launch-console-from-a-java-program-if-posable –