SWING Environment Setup - Java Swing

What is SWING Environment Setup?

This part guides you on how to download and set up Java on your device. Please use the follow steps to set up the environment.

Java SE is liberally accessible from the link Download Java. Therefore, you can download a description based on your operating system.

Follow the commands to download Java and run the .exe to establish Java on your machine. Once you have installed Java on your machine, you would need to set the environment variables to point to the acceptable installation directories.

Setting Up the Path for Windows 2000/XP

Assume you have installed Java in c:\Program Files\java\joke directory −

Step 1 − Right-click on 'My Computer' and choose 'Properties'.

Step 2 − Click the 'Environment variables' button under the 'Advanced' tab.

Step 3 − modify the 'Path' variable so that it also contains the path to the Java executable. Instance, if the path is presently set to 'C:

\WINDOWS\SYSTEM32', then alter your path to read 'C: \WINDOWS\SYSTEM32;c:\Program Files\java\joke\bin'.

Setting Up the Path for Windows 95/98/ME

Assuming you have installed Java in c:\Program Files\java\joke index −

Step 1 − Edit the 'C: \autoexec.bat' file and add the following line at the end: 'SET PATH=%PATH%;C:\Program Files\java\joke\bin'.

Setting Up the Path for Linux, UNIX, Solaris, FreeBSD

Environment capricious PATH should be set to point to where the Java binaries have been installed. Refer to your case documentation if you have problem doing this.

Instance, if you use bash as your shell, then you would add the following line to the end '.basher: export PATH=/path/tm/java:$PATH'.

Popular Java Editors

To inscribe your Java programs, you will need a text editor. There are even more sophisticated IDE presented in the promoter. But for now, you can think one of the following −

  • Notepad − On Windows machine, you can use any simple text editor like Notepad (Recommended for this tutorial), TextPad.
  • Netbeans − Netbeans is a Java IDE that is open source and free, which can be downloaded from https://www.netbeans.org/index.html.
  • Eclipse − Eclipse is also a Java IDE developed by the Eclipse open source community and can be downloaded from https://www.eclipse.org/.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Java Swing Topics