First: install and configure the Java Runtime Environment
First download JDK
Installing JDK is to install a Java Virtual Machine on your local machine. It provides the core environment for compiling and running the Java program you have compiled (to be honest, this is a copy, but you can understand it)
Find the JDK on the sun homepage.
Http://java.sun.com/javase/downloads/index.jsp
Second, configure the environment variables after the download
Edit the following two things in the system variables (specific operation -- Right-click my computer -- properties -- Advanced -- environment variables -- find the system variables --
(First, ask where your installation path is. My G disk is used as an example)
1: variable name = path (if you already have it, append it to the end. Remember to add ';' before it ';')
Variable value = G:/java-jdk6u1/bin
2: In the system variable box, click-new-
Variable name = classpath (case sensitive)
Variable value =.; variable name = classpath
Variable value =. G:/java-jdk6u1/lib
(Here '.;' cannot be less)
If you are a beginner, it is recommended that you do not use eclipse first ---- directly repeat the code on the notepad.
Second:
Java compiler (eclipse)
This is the Chinese version of eclipse3.2:
Http://wlzx.zzuli.edu.cn/download/eclipse.rar
And the eclipse3.5 version I found many
Reference videos include
Little Dragon soul tutorial video
Http://v.youku.com/v_show/id_XODEwNDA2NDQ=.html? Full = true
The first video shows how to install JDK and the runtime environment.
And running after installation is complete