5. The basic environment has a number of initiators encountered some problems when configuring the basic environment of JDK. Here is a way to configure the basic environment. If you have any incomplete, welcome to supplement. It is generally necessary to configure three variables Java_HomePathClassPath configuration path, which allows you to run Javac, Java directly at the command prompt, if you can't run Javac in a command prompt, Java prompts without this command, then your PATH is not configured Great. If you are running your Java class, the main function is not found, then your classpath is not configured. The detailed configuration method is as follows: Set the running environment parameters: a. If it is Win95 / 98, add the following 3 line statement to the last side of /autoexec.bat:
Java_Home = C: /J2SDK1.4.1path=%java_home%/bin;% path% classpath =.;% Java_home% / lib
b. If it is Win2000, use the mouse to right click "My Computer" -> Properties -> Advanced -> Environment Variables
System Variables -> New -> Variable Name: Java_Home Variable: C: /J2SDK1.4.1 System Variable -> New -> Variable Name: ClassPath Variable:.;% Java_Home% / LIB System Variable -> Edit -> Variable Name : Path plus the most in the most in the variable:% java_home% / bin;
(One English in ClassPath "." After following a semicolon, indicating the current path to the current path) In the classpath you can specify a package name, such as the third party you used. Sepailed between multiple packages.
c. If it is WinXP, the method is similar to Win2000