Learning a new programming language can be challenging. You will hear a lot of new terms which can be overwhelming for a newbie. So, we have decided to explain a few terms that you are likely to hear in the world of Java programming language.
Note, this is not the complete list of Java Glossary. Instead, it’s the list of terms you should know before you start learning Java programming.
Java – Java is a set of technologies (programming language and computing platform) for creating and running software. However, Java is often used to refer Java programming language for simplicity.
Java programming language – A powerful, general-purpose, platform-independent, object-oriented programming language.
Java 8 – Java 8 is the latest major release for Java. Our Java tutorial will include all major features of Java 8.
Java EE, Java ME and Java SE – Java EE, Java ME and Java SE stands for Java Platform Enterprise Edition, Micro Edition, and standard edition respectively.
Java EE is targeted for applications which run on servers. Java ME is targeted for resource limited devices like: embedded devices. And, Java SE is the basic Java environment used for creating standard programs.
If you are a java programming newbie, we recommend you to start with J2SE.
JVM – JVM (Java Virtual Machine) is an abstract machine that enables your computer to run a Java program.
JRE – JRE (Java Runtime Environment) contains JVM, supporting libraries, and other components to run a Java program. However, it doesn’t contain any compiler and debugger.
JDK – JDK (Java Development Kit) contains JRE and tools such as compilers and debuggers for developing Java applications.
To run Java Programming in Windows, you’ll need to install two things: JAVA SE Development Kit (JDK) and IDE to create your Java Projects.
Follow this step by step guide to get started.
- Go to the Downloads page of Java Standard Edition Development Kit.
- Under Java SE Development Kit section, click Accept License agreement at the top of the table. Then, click the download link for Windows (x64) if you have a 64-bit system, or Windows (x86) if you have a 32-bit system.
- After download, open the setup file and follow the instructions. Click Next. Select all features by selecting “This feature will be installed on local hard drive” and copy the installation location (highlighted by yellow) in a Notepad. And, click next again.
- During the installation, you’ll be prompted to install JRE. Click Next and you’re done. Click the Finish button to complete the installation.
- Now, you need to edit the PATH variable. Go to Control Panel > System and Security > System. Click on Advanced system settings on the left to get System Properties window.
- Click on Environment Variables. Then, on the lower System variables section, find Path and click Edit on the following window.
- Next, select all text in the Variable Value textbox, and copy and paste it in another Notepad file. This will make it easier for you to edit and check.
Check if the text already contains C:\ProgramData\ Oracle\Java\javapath;. If yes, you can go to the next step.
If no, copy the earlier copied installation location in the front and append bin;to the end like: C:\Program Files (x86)\Java\jdk1.8.0_112\bin;.For you, the JDK version jdk1.8.0_112 might be different.
Copy the whole text and paste it in the earlier PATH‘s Variable Value textbox.
- Click Ok to save the changes.
- To check if Java was properly installed, open Command Prompt by typing cmd in Windows search or using Run window (Windows Key + R), and type
java -versionto get similar output as below. If you do, congratulations you’ve successfully installed Java. If not, check the Oracle’s Download Help
Install IntelliJ IDEA
- Go to IntelliJ IDEA Downloads page.
- Download the Community Edition of IntelliJ IDEA which is free. Click the Download button.
- After download, open the setup file and follow the instructions (Next > Next). Then, create Desktop shortcut for 64-bit launcher, and add associations for .java(Select the ones you want). Click Next again and Install.
- Now, open IntelliJ IDEA from your Desktop shortcut.
- IntelliJ IDEA will now allow you to customize its interface. You can skip all and set defaults, or choose your custom changes. If you’re unsure, just click Skip All and Set Defaults.
- You’ll now be greeted with a Welcome page. Select Create New Project.
- In the next window, select Java on the left window and click New at the top to select JDK. Here, select the installation location of the JDK we copied during the Java installation.
- IntelliJ IDEA now recognizes the JDK installed. Don’t check any of the options below and click Next.
- Now, write the name of your project: HelloWorld (or anything you want) and click Finish. If it says the directory doesn’t exist, just click Ok. (If you don’t see a sidebar on the left of the window, Go to View > Tool Windows > Project).
- Now, to add a new Java class, select src folder on the left > right click > New > Java Class. Write the name of your class. Make sure you don’t have spaces in the class name.
- Write your Java code and save it.
- To run the program, go to Run > Run... Then, click on HelloWorld (or your project) which will build the executable file and run it.