Configure JDK environment variables in Ubuntu13.04

Source: Internet
Author: User
Configure JDK environment variable 1 in Ubuntu13.04. Enter sudovi/etc/prifile on the terminal and enter the user password as prompted. 2. Add the following code to the end of the file: JAVA_HOME =/home/qmxl/soft/jdk1.7.0PATH = $ JAVA_HOME/bin: $ PATHCLASSPATH =.: $ JAVA_HOME/lib/dt. jar

Configure JDK environment variables in Ubuntu 13.04

1. Enter the terminal, enter sudo vi/etc/prifile, and enter the user password as prompted.
 
2. Add the following code at the end of the file:

JAVA_HOME =/home/qmxl/soft/jdk1.7.0
PATH = $ JAVA_HOME/bin: $ PATH
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME
Export PATH
Export CLASSPATH

3. Save and exit. log out.

VI Operation Reference
 
Three command modes of vi
Command mode, used to input commands;
Insert mode, used to Insert text;
Visual mode: used to highlight the video and select the body;
 
: W save;
: Wq! Save and exit;
: Q! Do not save and exit;
 
J. Move a row down;
K. Move a row up;
H: move one character to the left;
L move one character to the right;
Ctrl + B Move the screen up;
Ctrl + f move one screen down;
 
O insert a row above the row where the cursor is located;
O insert a row under the row where the cursor is located;
 
U undo the modification or deletion operation;
U undo so
Press ESC to return Command mode,

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.