How to start coding in Java
Java is a general-purpose programming language that supports concurrency, class-based object orientation, and multiple threads. Java programs are frequently compiled into bytecode that may be run on any Java virtual machine (JVM), regardless of the computer’s architecture. Java 20 is now available. Below is a list of both Windows and Linux’s environment settings. JVM, JRE, and JDK 3 are all platform-specific because Operating System configurations differ so much. Platform independence applies to Java.
Before setting up the environment, there are a few elements that must be understood, which are best understood from the following image:
Because it adheres to the “write once, run anywhere” (WORA) principle, Java may be used on a variety of computers and platforms. Thus, Java programs may be created on one computer and executed on any other computer that has the Java Runtime Environment ( JRE) installed.
COMPATIBILITY
Java is compatible with a variety of devices and OSes, including:
Windows-based devices: Older Windows versions, including Windows XP, Windows Vista, Windows 7, Windows 8, and Windows 10, are compatible with Java.
Linux-based systems: Java may be used on a number of Linux distributions, including Ubuntu, Fedora, Debian, CentOS, and others.
Apple computers: On Mac OS X and later versions of macOS, Java is supported.
Java is supported on Solaris x86 and SPARC computers.
Various alternative operating systems, including FreeBSD, OpenBSD, and NetBSD, support Java.
Here, we’ll outline instructions for the following operating systems:
operating system for Windows
Get tech enthusiasts’s stories in your inbox
Join Medium for free to get updates from this writer.
operating systems for Linux and macOS
1. OPERATING SYSTEM FOR WINDOWS
- Go to install Java, the official Java website.
- “Java Download” button should be clicked.
- A “Agree and Start Free Download” button will appear on the next page.
- On your PC, save the Java installation file.
- Double-clicking the installer file when the download is finished will start the installation.
- To give the installation permission to modify your computer, choose “Yes” when requested.
- To finish the installation procedure, adhere to the wizard’s directions.
- You might be asked to select an installation location throughout the installation process and agree to the license agreement. Be sure to thoroughly read the license agreement before agreeing to it.
- . Run the jdk Application(. exe file) after downloading it to begin installing Java on your computer. You must configure the environment variable after installing Java on your device.
- Go to System and Security > System in the Control Panel. Choosing Environment Variables from the Advanced System Setting menu will be helpful.
- The “ Path” variable under System variables must now be changed to include the path to the Java environment. Click the Edit button after choosing the “ Path” variable.
- When you select the New button and then add the path where Java is installed, you will get a list of several routes. The “ C: Programme Files” or “ C: Programme Files( x86)” folders are where Java is normally installed. If you have Java installed somewhere else, put the path there.
- You are finished after clicking OK and saving the changes. Now open the command prompt and run the javac -version to see if the installation was successful. You’ll see that Java is now operating on your computer.
2. FOR LINUX
OPERATING SYSTEM FOR MAC OS
: “ Eclipse IDE”: This integrated development environment (IDE) is the most popular one for creating Java-based software. Eclipse can be downloaded.You can refer to this guide to set up Eclipse on your computer.
Originally published at https://www.technoenthusiasts.com.






