Originally Posted by
GregBrannon
When I searched "ubuntu terminal,"
this is the first result. That page should help you identify and find the terminal program based on your chosen desktop environment. If not, there were several other search results that should help.
Thanks for the link.
But my friend figured out the solution.
To invoke the terminal in Ubuntu you needn't pass any special command 'cmd' in the getRuntime().exec() API like you have to do it in Windows.
You simply pass the executable file or anything you need to run in an array in the Runtime API.