I managed to do it by creating a bash script called pjava and the code is as follow if anyone is having this question:
確定! 回上一頁