Here I explain about how to install Java on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files I. How to install Java 1. Download JDK Install most up-to-date JDK from Oracle site . Click downloaded dmg file and follow the guidance. Please follow the step explain this site if you have problem following the instruction. 2. Set up JAVA_HOME 2.1. Open Terminal and enter the following command. vim ~/.bash_profile 2.2. Enter i to change to insert mode. 2.3. Add JAVA_HOME as follow. export JAVA_HOME=/Library/Java/JavaVirtualMachines/{your JDK folder}/Contents/Home 2.4. Press esc button and enter :wq to save and quit the .bash_profile . 2.5. Enter the command below to update bash source .bash_p...
Here I explain how to install Tomcat on your . You may need basic knowledge of Linux command, PHP , Java , Tomcat . Please use the link below to go to further reading if necessary. I. How to install Java II. How to install Tomcat III. How to install PHP and CGI IV. How to deploy PHP/JavaBridge V. How to deploy your PHP and Java files II. How to install Tomcat 1. Download Tomcat Download tar.gz file from Apache Tomcat site and extract the file. 2. Make Tomcat folder Make /usr/local folder and move Tomcat folder to this folder. sudo mkdir -p /usr/local sudo mv ~/Downloads/apache-tomcat-9.0.0.M15 /usr/local 3. Create a symbolic link sudo rm -f /Library/Tomcat sudo ln -s /usr/local/apache-tomcat-9.0.0.M15 /Library/Tomcat 4. Change privilege sudo chown -R /Library/Tomcat 5. Make all shell file executable sudo chmod +x /Library/Tomcat/bin/*.sh 6. Command to start and stop Tomcat /Library/Tomcat/bin/startup.sh /Library/Tomcat/bin/shutdown.sh You will see t...