how can i start a java program in a new terminal window ?
when i say
java myprog
it starts on the same terminal window. I want it to go onto a new terminal window. in ubuntu
how can i start a java program in a new terminal window ?
when i say
java myprog
it starts on the same terminal window. I want it to go onto a new terminal window. in ubuntu
Assuming you use xterm as your terminal program
xterm -e java myprog
should do the trick. Or
gnome-terminal -e "java myprog"
with gnome-terminal.
-e flag works with xterm, gnome-terminal, rxvt and Konsole. Maybe a de facto standard?On windows:
cmd /c "java myprog"
should do what you want.