Java Programming: How to Write, Compile and Run Your First Java Program

Published: 13 January 2015
on channel: javajoe
116
1

Java Programming: How to Write, Compile and Run Your First Java Program

Using Windows I go through the process of how to create your very first computer program in Java. This the traditional Hello World Program.

Before following the steps in this video you must have the Java JDK downloaded and installed correctly on your computer.

http://www.oracle.com/technetwork/jav...

Once you install that make sure you add Java to your Path environment variable as described here - https://www.java.com/en/download/help...

If you have the above steps completed then you should be able to follow what I do in the video to get the Hello World Java Program up and running.

The code used in the video is here for your convenience for copy and pasting:

public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}

Also here are the commands used in the command prompt:

cd Documents\Programming Tutorials
javac
javac HelloWorld.java
java HelloWorld

Should you have any trouble, the below links will be beneficial, otherwise just post a comment here with your query.

http://www.learnjavaonline.org/en/Hel...!
http://docs.oracle.com/javase/tutoria...
http://www.java-made-easy.com/java-he...
https://thenewcircle.com/static/books...


On this page of the site you can watch the video online Java Programming: How to Write, Compile and Run Your First Java Program with a duration of hours minute second in good quality, which was uploaded by the user javajoe 13 January 2015, share the link with friends and acquaintances, this video has already been watched 116 times on youtube and it was liked by 1 viewers. Enjoy your viewing!