Setting your Java environment

Get your hands on your keyboard and type Oracle Java installation in google search bar or follow the steps here below.

  1. Go to “https://www.oracle.com/java/technologies/downloads”
  2. Chose your machine’s version of installer and download. It is a good practice to choose an installation directory rather than your program Files in Windows so windows security feautures would not block your java processes.
  3. Once you finish installation define a system environmnet variables from system properties on Windows machines. Add a user variable as JAVA_HOME and continue defining installation directory. As in the example here : you can check your Java installation file path from your commandline. Type “java -version” to check if your java installation is integrated with the system, if not you may again need a restart of your machine. If all is well type “echo %JAVA_HOME%” to see your java installation path which needs to be entered as variable value above in the window for your JAVA_HOME variable name entry. If above echo code does not work try these : “where java” in windows or “which java” for unix based systems like MacOs or Linux. Another method you can use in CMD in Windows is “for %i in (javac.exe) do @echo. %~$PATH:i”
  4. Then edit Path in your System variables and add a new environment variable entry. This is simply your Java bin folder you can find it in the installation path. A sample entry would as below.

All done for basic Java JDK set up. Now we need to install a Java IDE to write our java codes and run them. To continue learning how to install your IDE follow the link here.


Some more explanations for newbees :

  • JDK is an abreviation for Java Development Kit.
  • IDE is an abreviation for Integrated development Environment.
  • To Learn More about Java installation and Java Programming Language here some useful links :
    • https://www.edureka.co/blog/java-tutorial/
Aix Observer
Aix Observer
Articles: 30

Leave a Reply

Your email address will not be published. Required fields are marked *