0

Hi
I'm using NetBeans + GCC in Linux and also NetBeans + MinGW in Windows.

I need to run an OS Command e.g.: java -jar myjar.jar I prefer not to have the terminal/cmd window. It works fine in Linux, but in windows, it ends up in opening a cmd window anyway.

I tried javaw too.

Any help would be appreciated.

4
Contributors
8
Replies
9
Views
7 Years
Discussion Span
Last Post by Nick Evan
0
system("java -jar myjar.jar");

I have used this command, as I mentioned it works fine in Linux, but in Windows it appears an annoying command window. (Terminal window)

0

why not append system exit after that

system("java -jar myjar.jar");
exit(0);

I doesn't work!!!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.