"Java" Java Helloworld__java

Source: Internet
Author: User

This blog post last modified: January 06, 2017, 11:06.


First, Introduction

This article describes how to write the first code HelloWorld in Java.


second, build a platform

System version: ghost_win7 SP1 x64 2015 08 Pure Edition


Third, the copyright notice

Bo Main: Sweet melon

Statement: Water do not forget to dig well people, reproduced please indicate the source.

Original address: Http://blog.csdn.NET/feilusia

Contact Way: 897503845@qq.com

Melon ble CC2541 Group: 127442605

Melon ble CC2640 Group: 557278427

Melon ble android Group: 541462902 melon Single chip computer Stm8/stm32 group: 164311667
Sweet Big melon Shop (Taobao): https://shop217632629.taobao.com/?spm=2013.1.1000126.d21.hd2o8i
Four, the experiment Premise 1, before the step of this article, please read the following blog: No
2, before the steps of this article, please implement the following blog:
Temporarily No


v. Basic knowledge

Temporarily No


Vi. Steps of the experiment

1, write code Hello.java (put in E:\JAVA)

public class hello{public
  static void main (String []args) {
  System.out.println ("helloworld!");
  }

Write in Notepad.


Vii. Matters needing attention

Temporarily No


viii. Results of the experiment

1. Compile and run



2, learn to use the Classpath property to run the program


The above illustration illustrates several points:

1 You can use CLASSPATH in other directories to change the path of the class to the directory of. class, and then run.

2) Classpath is not applicable and compiled.


Related Article

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.