Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

SWING environment installation


May 15, 2021 SWING


Table of contents


SWING - Environment installation

This section will show you how to download and set up Java on your machine. Follow these steps to set up your environment.

On the link Download Java, Java SE is provided free of charge. So you download a version based on your operating system.

On your machine, follow the instructions to download java and .exe to install Java. Once Java is installed on your machine, you will need to set environment variables to point to the correct installation directory:

Set the path to windows 2000/XP:

Let's say you've installed Java on the c:\Program Files\java\jdk directory:

  • Right-click 'My Computer' and select 'Property'.

  • Click the 'Environment Variables' button under the 'Advanced' tab.

  • Now change the Path variable so that it also contains the path to the Java executable. F or example, if the path is currently set to C:\WINDOWS\SYSTEM32 and then change C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin

Set the path for windows 95/98/ME:

Let's say you've installed Java on the c:\Program Files\java\jdk directory:

  • Edit C:\autoexec.bat file and add the down line at the end: SET SET PATH=%PATH%;C:\Program Files\java\jdk\bin

Set the path to Linux, UNIX, Solaris, FreeBSD:

The environment variable path should be set to point to where the java binary is already installed. If you're having trouble doing this, refer to your shell documentation.

For example, if you use bash as your shell, then you will add down to the last .bashrc: export PATH=/path/to/java:$PATH

Popular Java Editor:

In order to write a Java program, you will need a text editor. T here are even more complex IDEs available on the market. But for now, consider one of the following: