Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

"Hello World" Example for Java

License

NotificationsYou must be signed in to change notification settings

surya610github/example.java.helloworld

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example.java.helloworld

This is "Hello World" Example for Java.

The structureHelloWorld package is like this:

example.java.helloworld/|-- HelloWorld|   `-- Main.java|-- LICENSE|-- Manifest.txt`-- README.md

Compile class

For compile the main class for package, execute the follow command:

javac HelloWorld/Main.java

This generate theMain.class file intoHelloWorld directory.

Run class

For run the main class for package, execute the follow command:

java -cp . HelloWorld.Main

This show theHello world message.

Create a JAR file

For pack the main class for package as a JAR file, execute the follow command:

jar cfme Main.jar Manifest.txt HelloWorld.Main HelloWorld/Main.class

Run a JAR file

For run the JAR file packed, execute the follow command:

java -jar Main.jar

This show theHello world message.

Reference

About

"Hello World" Example for Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java100.0%

[8]ページ先頭

©2009-2025 Movatter.jp