I want to create an application which provides GUI using a java swing but in that application i need to use terminal to execute the commands of Linux Ubuntu OS like sudo apt-get update
and other.
Is there any method or code which executes my command in terminal but in background when I click on any button (on-click
event) in form which is built using java swing?