(i) JDK
1, double-click the Jdk1_2_2-001-win.exe file for installation, use the default configuration for installation, the JDK default installation directory for;
The default installation directory for C:JDK1.2.2,JRE is C:Program FilesJavaSoftJRE1.2;
2, restart the computer;
3, update the following environment variables: the c:jdk1.2.2in directory appended to the path;
C:jdk1.2.2lib Ools.jar; C:jdk1.2.2libdt.jar added to the classpath. Update
Methods: Control Panel-> System-> Environment-> system variable;
4. Test applet:
1) Open Command window;
2) switch to C:jdk1.2.2demoappletstictactoe directory;
3) running Appletviewer example1.htm;
4) all normal;
5, test application:
1 Create a Test.java file in my D:hzqjava directory, which reads as follows:
public class Test
{
public static void Main (String arc[]) {
System.out.println ("JDK installed successfully, friend!") ");
}
};
2) Open Command window;
3) switch to D:hzqjava directory;
4) running Javac Test.java for compiling;
5 run Java test to run this program;
6) everything is normal.
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.