Java basic learning note _ Java introduction and environment variable configuration

Source: Internet
Author: User

The first day of study is relatively simple, mainly including the following content:
1. Basic computing knowledge
1) software and common software categories
2) software development and development
3) Introduction to the use of doscommands and common shortcut keys
2. Java language Overview
1) Introduction to Java
2) Three technical architectures of Java language (javase \ javaee \ javame)
3) Java features
The biggest feature is open source code and cross-platform. Cross-platform: the running of Java programs does not depend on a few special operating system platforms, but runs Java programs in the form of JVM, but the JVM is not cross-platform.
4) JRE, JDK
JRE: JVM + Java core class library (Java Runtime Environment, running Java program, which is a bytecode file compiled after completion); no need to install it separately;
JDK: JRE + Java tools (including JRE and some instructions for converting the code written by programmers into bytecode files that can be run in JRE)
3. Set Environment Variables
Path: After the environment variable is configured, Windows can automatically configure pathto find the command (.exe) You entered on the console)
1) Permanent environment variable settings
** My computer -- Right-click Properties -- Advanced -- environment variables -- System Variables
** Create an environment variable in the following format:
* ** Variable name: java_home
* ** Variable value: JDK installation directory. (C: \ Program Files \ Java \ jdk1.7.0 _ 15)
** Edit the path and add the variable value % java_home % \ bin; its own environment variable value.
2) set temporary environment variables
* Set: Used to view information about all environment variables of the local machine.
* Set variable name: view the value of a specific environment variable.
* Set variable name =: clears the value of an environment variable.
* Set variable name = specific value: define a specific value for the specified variable.
* % Dynamic reference variable value
4. Configure the classpath Environment Variables
1) Difference between path and classpath
Path: The Directory (.exe,. BAT) of the Windows program file );
First, find it in the current path. If it cannot be found, find it in the path. If it cannot be found, the system will prompt that it is not an internal or external command, or a runable program or batch file.
The classpath variable value is the directory of the Java class file (ending with. Class );
Classpath is configured in two cases:

1. Add points at the end: first find the number in the classpath path. If no value is found, go back to the current directory;

2. No plus points at the end: Find the number in the classpath path only;

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.