Java entry knowledge

xiaoxiao2021-03-06  26

I. Basic concept:

SDK Software Development Kit Software Development Kit JDK Java Developer's Kit Java Development Toolkit

- Java 2 Platform Micro Edition (J2ME) Micro version - Java 2 Platform Standard Edition (J2SE) Standard Edition - Java 2 Platform Enterprise Edition (J2EE) Enterprise Edition

JVM Java Virtual Machine means both Java virtual machines, Java programs are running in JVM. JRE JAVA RUNTIME ENVIRONMENT JAVA running environment, Java class library is in the Java runtime environment.

Second, the configuration of the JDK environment variable:

SET // Display all environment variables set path // Display path environment variable SET CL // Displays the ClassPath environment variable

If it is running in Windows 98, add the following statement at the end of the C: /autoexec.bat file: (Note: This path is determined according to the path to the JDK) ClassPath =.; C: /JDK1.3/LIB; PATH =% path%; C: /JDK1.3/bin; if it is in Windows2000 or XP, you need to use the right-click on the desktop "My Computer", select "Properties", pop up a "system feature" "Window, select" Advanced ", (XP Select Advanced in Properties) and select Environment Variables, edit ClassPath and Path in the Environment Variables window.

Set an environment variable in the CMD (only valid for the current CMD):

SET PATH = "path" set classpath = "pat"

If the classpath is not set, you can use the command line in CMD: Java-ClassPath ClassPath ClassName Implementation

ClassPath is set to reference other paths If BBB is packaged disaster prevention C: /Test/ccc.jar, ClassPath should be set to C: /Test/ccc.jar, if the BBB is not packaged in C: / Test /class/bbb.class, ClassPath should set C: / Test / Class If the BBB has packaged package1.package2, bbb.class is in c: /test/class/package1/package2/bbb.class, ClassPath should also set C : / Test / Class

The API in Java's own class library does not need to be set, and it is necessary to set it to the directory of the class library belled inside the Java: /jre/lib/rt.jar

转载请注明原文地址:https://www.9cbs.com/read-40570.html

New Post(0)