Lay your Bed this Christmas!!!

Merry Xmas to all BCB Readers, this is to wish you all the love that comes with Christmas.Without doubt, it’s going to be a long holiday with lots to eat, entertain ourselves and rest or should I say sleep as we rejuvenate ourselves for the incoming year.

Talking of rest and sleep, having a good rest begins with having our bed well laid. Likewise in the world of Java programming, laying your bed begins with two critical items. These are: JDK and IDE or alternatively a Text Editor- JDK being the bed and IDE or Text Editor being the cover.

JDK (Java SE Development Kit) – To set up the Java platform on your computer, you need to download the developer kit, then set up development environment you plan on using.

A text editor – A text editor is used to edit plain text files. I recommend Notepad++ because it has more support for programming. However there are other text editors including Notepad, Wordpad,TextEdit, Textpad and so on.

OR

IDE (Integrated Development Environment) – A Java IDE is a software application which enables users to more easily write and debug Java programs. Many IDEs provide features like syntax highlighting and code completion, which help the user to code more easily. Examples are Eclipse, Netbeans, Jcreator, Jbuilder and so on. I recommend Netbeans or Eclipse but for most of our examples I will be using Netbeans.

You can download each of these applications/softwares here from the URLs below:

Once you’ve installed the JDK downloaded on your computer then set the class path as an environment variable. You need to set the PATH environment variable so you will be able to conveniently run the executable (javac.exe, java.exe, javadoc.exe, and so on) from any directory without having to type the full path of the command. If you do not set the PATH variable, you need to specify the full path to the executable every time you run it, such as:

C:\Program Files\Java\jdk1.8.0_65\bin\javac MyClass.java

Environment Variable: They are global system variables accessible by all the processes running under the Operating System (OS).

Path: Maintains a list of directories. The OS searches the PATH entries for executable programs, such as Java Compiler (javac) and Java Runtime (java).

Classpath: The Java Compiler and Java Runtime searches the CLASSPATH entries for Java classes referenced in your program.

Java_Home: Maintains the locations of JDK installed directory.

How to set the class path

Go to My Computer, right click the Computer icon (I named mine This PC).

Choose Properties from the context menu.

Click the Advanced system settings link.

Click the Advanced system settings link.-2

Click Environment Variables.

Click Environment Variables

In the section System Variables, find the PATH environment variable and select it. Click Edit. If the PATH environment variable does not exist, click New.

Image 5

In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable as shown below. Click OK. Close all remaining windows by clicking OK.

Image 7

To get to value of the path environment variable to add go to the jdk installation directory. In my case “C:\Program Files\Java\jdk1.8.0_65\bin”. Go to the end of the variable value, insert a semicolon and paste the JDK installation bin path.

For more information, look up oracle site using the link below

https://docs.oracle.com/javase/tutorial/essential/environment/paths.html

Once JDK and IDE or text editor has been properly set up on your system, you can begin programming in JAVA.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s