Complie java code into dmg

broken image

Step 1: Download the JDK from Oracleįirst, you need to follow this link: to download Java SE Development Kit 8, or in the navigation bar at the top of this site, you can click on Java SE to choose different versions if you want, but I recommend you download JDK 8.

broken image

However, if an IDE is your choice, such as NetBeans IDE, the latest version of this IDE then you don’t need to install JDK because it has been bundled in this IDE when you install it, but if you install NetBeans 8 or lower versions, you still need to install JDK manually. If you prefer writing code on a text editor such as VSCode, then first off you need to install the JDK (Java Development Kit) which contains compiling tools and some other tools to help you run your Java applications. These lines of codes are syntactically correct, but how can you run it on your local machine? In this article, we are going to walk through in detail how can you compile and run Java programs on your local machine. In the first tutorial, we have learned how to write the very first program in Java.