Java is an excellent programming language. Java also has many advantages. Start from scratch. This is the first day, not why, but let yourself learn more.
1. Download the JDK
Http://www.oracle.com/index.html in the browser. Go to Oracle Website
Click Downloads-Javase
Click JDK DownloadDownload and install the JDK, then select the path to install it. I'm not going to do a lot of introductions here. I'm sure everyone will. 2. Configure Environment Variableshttp://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html here in detail on the tutorial. Finally, emphasize one point. Remember not to miss out on the last ";" Symbol. 3. HelloWorld of the first Java programRecommended for beginners, use a silent text editor such as Windows Notepad.
Public class helloworld{ publicstaticvoid main (String args[]) { System.out.println ("Hello, this is one of my Java programs");} }
After entering the above code, save the text file as Helloworld.java note case
4. Compile the program and run
Click the Start menu, click Run, enter CMD in the dialog box, and then OK. Bring up the command prompt windowAt the command-line prompt, enter the directory where the source code is located: Enter d:f at the command line: So you can enter D and then enter the CD Stuart this is the directory to enter the D-disk Stuart and then enter Javac Helloworld.java here on the command line. Note the case in the file There's a helloworld.class file in the folder. This is a compiled program best we have to run the program in the command line input Java HelloWorld believe that you have some knowledge of java. Thank you!
Java starts from zero the first day