Getting Started - Java
In my last post, I introduced the Java programming language. In this post, I will begin lessons on how to get started with programming in Java. At the end of this tutorial, you will learn:
- How to get started in Java Programming.
- About Downloading and Installing Java for development.
So let's get started! Now to program in most computer languages you need two basic tools:
- A text editor - to write the code in the syntax of the language you are going to use.
- A compiler - to make sense, compile or interpret your code, and make it into an executable file.
These are all the tools that you need to get started, however, they are more easier ways to get things done, like using an Integrated Desktop Environment (IDE) which I will talk about in another tutorial.
Great! So now it's time to get started with choosing a text editor to work with. In case you don't know what a text editor is, at this time, it's a software that allows you to type into it, using plain text format. Notepad, for Windows, is a very popular one.
Now depending on the type of operating system you use, the options for the options for text editors are many. A simple Google search can help you to pick out a decent one, however I would recommend you choosing one that has good features for programming.If you are using, Windows Operating System, I would recommend you use, Notepad++, which is a free software. If you are using Linux/Unix/Mac or any other *nix type Operation System, I would recommend using gEdit. Both of these software are available free of cost, and are great tools for programming.
You may also go ahead and choose a different editor of choice, if it makes you comfortable.
Note that you may read or hear about using tools like Vi, Vim or Emacs. I would not recommend these for beginners, as these are for more advanced users. Also, even though it can work for your purpose, I would highly advice against using Microsoft Notepad, as it can make it difficult for programming, but trying to format your code into paragraph, document type text.Note: For the purposes of this tutorial, I will be using both gEdit and Notepad++
Now that note have chose a text editor to work with, it's time for us to get the Java compiler, better know as the Java Development Kit (JDK). To acquire this, we can simply go to the Java Developers Website and download the latest version.
You may notice on this site, you are given two options to download that JDK or the JRE. Now the JRE is the Java Runtime Environment, this is the tool needed to run Java programs on any computer. In most cases, this may already be installed on your computer, but if it isn't, then go ahead, download and install it. The JDK or Java Development Kit, on the other hand, it the tool requires to compile Java code into executable. We will discuss how this is done in a later tutorial, but for now, just go ahead, download and install the latest version.
Once you have successfully completed the installation, we should be all set and ready to start writing Java Programs, which we will begin in the next tutorial.
In the meantime, if you have any questions/comments/suggestion, feel free to drop me a line at firstname.lastname@example.org