May 15, 2021 SWING
1. SWING - Environment installation
2. Set the path to windows 2000/XP:
3. Set the path for windows 95/98/ME:
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:
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.
C:\WINDOWS\SYSTEM32
and then change
C:\WINDOWS\SYSTEM32;c:\Program Files\java\jdk\bin
。
Let's say you've installed Java on the c:\Program Files\java\jdk directory:
C:\autoexec.bat
file and add the down line at the end: SET
SET PATH=%PATH%;C:\Program Files\java\jdk\bin
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
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:
Notepad: On Windows machines, you can use any simple text editor, such as Notepad (recommended in this tutorial), TextPad.
Netbeans: is an open source and free Java IDE that can be downloaded http://www.netbeans.org/index.html data.