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.
2. Set up JAVA_HOME
3. Check Java version
If you have any suggestion and question, especially technically and grammatically, please feel free to leave your comment.
Thank you for your visit 😊
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
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 JDKInstall 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.

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.
2.3. Add JAVA_HOME as follow.
2.5. Enter the command below to update bash
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_profile
2.6. Check if JAVA_HOME is updated.echo $JAVA_HOME
3. Check Java version
Execute following command, and see your Java version. 
Now you will see the result as follow if success.

java -version
Now you will see the result as follow if success.

If you have any suggestion and question, especially technically and grammatically, please feel free to leave your comment.
Thank you for your visit 😊
Comments