About Java (different tools or platforms with "Hello World")

Source: Internet
Author: User
Tags netbeans java se

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:

  • Java SE Download List

  • Any editing Tool
    such as: notepad++, JBuilder, EditPlus and text editor

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")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.