This entry is part 3 of 7 in the series Hello World Of Java!

During the last two articles we have now covered what JAVA mainly is about and what you can gain by learning to write JAVA code.

Now it’s time to get your system ready for being able to really produce some JAVA code and execute it.

Today we will look what you have to install to get your system “ready for JAVA”. JAVA isn’t installed by default on your Windows, Linux or MAC system. You have to download it and install it manually.

There are basically two common ways of “installing JAVA”. You can either install the Java Runtime Environment (JRE) or the Java Development Kit (JDK) – in theory there are probably even more ways to “install JAVA”, depending on the operating system and similar stuff, but these are the most two common ways I know. You can see it from the names, that the JRE (JAVA Runtime Environment) is normally meant for people who don’t develop JAVA, but just want to run JAVA applications on their system. The JDK (JAVA Development Kit) is aimed at people developing JAVA.

From my experiences you can download either of them for creating and executing JAVA code. However, there’s more where you can profit if you use the JDK if you are developing. And because I think it’s like I described above, I will show you how to download and install the JDK. In the end we are planning to develop some new JAVA projects, want to write some codes and not only execute them.

To download the current Java Development Kit (JDK) visit the following link:

https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

1) Make sure you accept the license agreement

2) Choose your operating system and 32/64 Bit version

3) And you can start the download!

After downloading, simply execute the file to start the installation process. Just like you would do with any other ordinary application:

1) Choose your folder destination

2) Click a couple of times Next, leave everything as it is & wait …

3) When the installation is finished, it should look like this:

You now have successfully installed JAVA on your system!

Now you’re able to execute code of JAVA applications and can in theory even create your own JAVA code and execute it. We will create our first own JAVA code soon in the following parts of this series.

Normally you could test by visiting this link if your JAVA has been installed properly. However, this service is kind of outdated (If you use Chrome, it tells you to use Firefox. If you use Firefox, they tell you they discontinued the support of it and you should go look in the system settings … 😉 ).

You can check your JAVA version – and therefore if it has been installed at all the right way… – the easiest way through the terminal with this command (type “cmd” in the execution bar at windows to find the terminal):

java -version

You will get a result like this, if everything was installed properly:

For now, we finally installed the Java JDK and made your system ready for JAVA. You can now execute JAVA code and everything is also in theory ready to write your own JAVA code. In the next part of this series I will show you how to execute a simple JAVA application and explain the differences of a .JAR file vs. the JAVA source code. After this part we will then finally get into installing a very nice help to get our first own JAVA code done! So stay tuned, it won’t get boring 😉 Don’t worry, the “real” test in the next part of this series will be much more interesting! You will actually see things happening there.

About JAVA security (Important!)

JAVA is continuously a target for virus attacks. Most common issues are old JAVA versions that people have installed. So now, with telling you all the positive things about JAVA and it’s use, this is definitely a negative aspect to JAVA. So please be aware of that if you download and install it, following this series. It’s your duty on making sure you have installed the latest up to date version. If you are serious about developing JAVA (or developing some code in general) you might also want to think about getting a “clean” system for doing this, which is separated from your other system.

Usually you don’t have to check all the time for yourselve if there’s a new JAVA version out there. JAVA will usually notify you when there’s a new version aviable.

That’s it for today. If you have any questions, notes or face any problems installing the JDK, please leave a comment. I’m happy to look if I can help you then!

Sources:

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

GET INFOSIONISED FROM SOME OF MY OTHER ARTICLES:

—> Spreadsheet Overview For Playing EOS Casino Gambling Games: DICE, Crash, Roulette, Black Jack, Poker, Slots & Other Games

—> TRYBE Presale vs. Casino Dividends: And The Winner Is …

—> Enhance Your Articles Visually By Adding A Word Cloud


Your Remaining Votes (within 24hrs) : 10 of 10
13 votes, average: 5.00 out of 513 votes, average: 5.00 out of 513 votes, average: 5.00 out of 513 votes, average: 5.00 out of 513 votes, average: 5.00 out of 5 (13 votes, average: 5.00 out of 5)
You need to be a registered member to rate this.
(2207 total tokens earned)
Loading...

Responses

  1. Zeus69

    Great post @Infosion, maybe I should look at try to do some Java coding myself, looks interesting. My staff use it to develop GUI for our GIS platform. Thanks for sharing bud. Very well compiled ,my friend. I will be back to rate.
    Regards,
    Mark (Zeus69)

    (1)