Given that you can better understand what is installed during the installation process, why do you need to install these things? First, I checked the meanings of various basic concepts: J2EE: Java 2 Enterprise Edition, Enterprise Edition, generally, this J2SE: Java 2 Standard Edition and Standard application development version are not used for personal development. Generally, this is used for personal development: Java 2 Micro Edition and Micro Edition, for mobile phones, PDAs, and other embedded development sdks: software development kit, software development kit, java also has its own java sdk jdk: java development kit, java development kit, part of the java SDK, used to develop java application JRE: java runtime environment, java runtime environment, that is, java platform. All java programs must run on this platform. Currently, it is part of JDK, if you do not need development, just run it, you can download only JRE, instead of jdk jvm: java virtual machine, java virtual machine, is a part of JRE, implementation of java cross-platform use of Windows Java installation process 1: download the latest JDK from the official website (directly google or go to www.oracle.com) 2: Install jdk (default path) 3: Check whether java is successfully installed. Go to command line: Win + R, Enter cmd, and run in command line mode: java-version to see the information after java is installed. 4: compile helloworld program 4.1 to set the environment variable my computer-> properties-> advanced system settings-> environment variable-> environment (in the bin folder under the jre installation directory) path, save. If the command line interface has been opened, restart the command line interface 4.2 to write the helloworld code class HelloWorld {public static void main (String [] args []) {System. out. println ("HelloWorld"); }} 4.3 compile and run javac HelloWorld. java HelloWorld PS: finally by the way the java installation below Ubuntu12.04 and a brief trial 1: install jre apt-get install openjdk-7-jre-headless 2: install jdk apt-get install openjdk-7-jdk 3: compile the helloword program class HelloWorld {public static void main (String [] args []) {System. out. println ("HelloWorld") ;}} 4: Compile and run javac HelloWorld. java HelloWorld