Beginners to learn Java, but also to understand some of the relevant basic knowledge
Three technology platforms to learn about Java are preferred:
Javase (Java Platform standard Edition), is a solution for developing common desktop and business applications
Java Java Platform Enterprise Edition, is a solution for developing enterprise-class applications.
Javame (Java Platform Micro Edition) Small edition is a solution for the development of electronic consumer products and embedded devices.
Jdk:sun Company provides a set of Java development environment, gradually become JDK (Java Development Kit), including Java compiler, Java Run tool, Java Document Generation tool, Java packaging tools.
The next step: 1, download and install the JDK, this tutorial is the same as the common software, no longer repeat here.
2, configure the PATH environment variable (CLASSPATH environment variable) can not be configured.
Right-click-Computer-Properties-Advanced system settings-environment variables,
Insert the installed JDK directory into the PATH variable
Input path
Open the DOS window, enter the Javac command, the following effect, prove the configuration is successful, or reconfigure
You can then open Notepad with a new one, with the suffix renamed. java
<span style= "FONT-SIZE:18PX;" >class demo{public static void Main (string[] args) { System.out.println ("Hello world!");} } </span>
In DOS, go to the file directory where the program resides
Enter Javac Demo,java (the name of the program to be run) to compile, enter the correct, and then perform the effect
Program Explanation:
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Rookie Learn java--First Java program