1. Set up a restful file to read files from local windows
Set up the shared files directory in a virtual machine in VMware, and then put the shared files inside
2, then turn on the virtual machine, enter with the root account, and then under the directory/mnt/hgfs/can see your own set of shared files
3. Move the JDK/JRE in the shared file to the/OPT directory, so that the purpose of this is to enable ordinary users to access the JDK
MV Jdk-6u45-linux-x64-rpm.bin/opt
MV Jre-6u45-linux-x64-rpm.bin/opt
4. Set permissions for JDK files to run:
chmod 755 Jdk-6u45-linux-x64-rpm.bin
5. Install the JDK:
Run the JDK installation package:./jdk-6u45-linux-x64-rpm.bin
Enter, when you see done, indicates that the installation is complete.
Run the JRE installation package:./jre-6u45-linux-x64-rpm.bin
Enter, when you see done, indicates that the installation is complete.
6. Set the Java environment variable:
First open the System configuration file: Vi/etc/profile
O: Go to edit,
Then append java_home =/usr/java/jdk1.6.0_45/in the file;
Note that this is the installation directory for your JDK.
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar;
Path= $JAVA _home/bin: $PATH;
Export Java_home,path,classpath;
: WQC
Installing JDK steps in VMware Linux systems in Windows