Skip to main content

executing programs

1 reply [Last post]
patm1987
Offline
Joined: 2004-01-23

Hello, I've been having some ideas that I would like to test in java. I just don't know how, or where to look, to execute applications or getting currently running apps (in Linux).

this is mainly to create a kind of application launcher/task bar (maybe even system tray).

I know that it's prolly just a class (or a group of classes) that I am just missing, thanks for your help.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jordihs
Offline
Joined: 2004-05-20

You can use for example Runtime.getRuntime().exec("somescript.sh" );
I could ellaborate more but I'm no expert at such command and if you google for it you will find more detailed examples.