Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear
- echo "------------------"
- echo " JavaGUI V-1.0"
- echo "------------------"
- echo
- echo "******************************************"
- echo ":To start application input User name:"
- echo "******************************************"
- read j
- cd /home/$j
- clear
- echo "------------------"
- echo " JavaGUI V-1.0"
- echo "------------------"
- echo
- ls
- echo
- echo "***********************************************************************"
- echo "Now locate the folder from above list where you put the javaGUI.sh file"
- echo "***********************************************************************"
- read l
- clear
- echo "------------------"
- echo " JavaGUI V-1.0"
- echo "------------------"
- echo
- ls
- echo
- echo "******************************************************"
- echo ":Now locate .java containing file from the list above:"
- echo "******************************************************"
- read k
- cd $k
- clear
- while [ $ch==10 ]
- do
- clear
- echo "------------------"
- echo " JavaGUI V-1.0"
- echo "------------------"
- echo
- echo "''''''''''''''''''"
- echo " Menu"
- echo "''''''''''''''''''"
- echo "**********************************"
- echo "1.Create/Edit a java application"
- echo "**********************************"
- echo "2.Delete a java application"
- echo "**********************************"
- echo "3.Compile & run a java application"
- echo "**********************************"
- echo "4.Quit"
- echo "**********************************"
- echo "----------------------------------"
- echo "Enter your choice(1-4):"
- read ch
- case $ch in
- 1)
- clear
- cd /home/$j/$k
- ls
- echo ":Select an application to edit or enter new application name:"
- read a
- nano $a
- ;;
- 2)
- cd /home/$j/$k
- clear
- ls
- echo
- echo ":Select an application to delete:"
- read b
- rm $b
- ;;
- 3)
- cd /home/$j/$k
- clear
- ls
- echo
- echo ":Select an application to compile and run:"
- read c
- javac $c 2> h
- if [ -s h ]
- then
- echo
- echo "Your program is incomplete or failed to compile.Please check again!!"
- echo "--------------------------------------------------------------------"
- cat h
- else
- echo "Your program compiled!!Now re-enter the app name to run it:"
- echo "-----------------------------------------------------------"
- fi
- read d
- clear
- echo "Your program starts from here"
- echo "*****************************"
- echo
- java $d
- ;;
- 4)
- kill -9 $PPID
- ;;
- *)
- echo "Invalid choice!!Try again."
- ;;
- esac
- echo
- echo
- echo "---Press Anykey to return to menu---"
- read ch
- done
- #*****INSTALLATION INSTRUCTION*****
- #1.After downloading this zip file extract it in home folder.
- #2.Then rename the extracted folder to "As you like"
- #3.open terminal & type without '#'
- #cd /home/**user name of computer**/**as you named the extracted folder**
- #4.Then type
- # sudo chmod +x JavaGUI.sh & type password
- #5.Now close window go to desktop
- #6.Create a launcher
- #ENJOY!
Add Comment
Please, Sign In to add comment