forked frommacagua/example.java.helloworld
- Notifications
You must be signed in to change notification settings - Fork0
"Hello World" Example for Java
License
NotificationsYou must be signed in to change notification settings
surya610github/example.java.helloworld
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is "Hello World" Example for Java.
The structureHelloWorld
package is like this:
example.java.helloworld/|-- HelloWorld| `-- Main.java|-- LICENSE|-- Manifest.txt`-- README.md
For compile the main class for package, execute the follow command:
javac HelloWorld/Main.java
This generate theMain.class
file intoHelloWorld
directory.
For run the main class for package, execute the follow command:
java -cp . HelloWorld.Main
This show theHello world
message.
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
For run the JAR file packed, execute the follow command:
java -jar Main.jar
This show theHello world
message.
About
"Hello World" Example for Java
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Languages
- Java100.0%