The most common getting Started app for any programming language: Hello World
NetBeans and "Hello World"
before writing Java programs, be prepared:
-
Java SE Development Kit 7
Microsoft Windows, Solaris OS and Linux: & nbsp Java SE Download list
Mac OS x: developer.apple.com
-
NetBeans IDE
for all platforms netbeans IDE download list
Attached: NetBeans IDE can be used in a variety of programming languages, and can choose to support one language or all languages of the installation package
Create an App
-
Create IDE Project
do not consider configuration issues in command-line development
-
Edit source file
Create an IDE project, a basic source file is automatically created
-
Compile source files
Call the Javac compile command, generated by. java. class (bytecode file)
JVM can parse. class file
-
Run Project
Invoke Java startup command, run project
1, the source file is a compilation unit. Compile the file to generate several bytecode files
2, see the Java White Paper
3. NetBeans Documentation
Windows and "Hello World"
If no IDE is applicable, the following tools need to be prepared:
Create an App
- Create. java file
- edit. java file
- command line Javac compile. Java
- command-line Java to run the. class file
Report:
1. See the Java White Paper
Solaris OS and Linux and "Hello World"
similar to Windows and "Hello World"
difference:
- J2SE Download List
- Installation Instructions
- CMD to replace with terminal terminal
- Edit tool to replace with VI or Emacs
About Java (different tools or platforms with "Hello World")