Installing JDK steps in VMware Linux systems in Windows

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.