In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "what is the method of configuring graphics and text in the Java program development environment". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Installation of JDK
JDK is a software development kit of Java language, which is mainly used for java applications on mobile devices and embedded devices. JDK is the core of the whole java development, which includes the running environment of JAVA (JVM+Java system class library) and JAVA tools. To develop Java, you need to install JDK in the computer first. Download link: JDK official download
1) apart from downloading from the official website, you can also download and install it through sharing by others. I installed it by copying my friend's JDK installation package.
2) Select the jdk1.8.0_10264.msi file in this folder to install, if there is no special requirement, you can install the program in the default directory, and you can choose Next for each step, that is, the next step, until the installation is complete.
After installing JDK, you can configure the compilation environment for Java.
2. Configuration of Java compilation environment
To compile the java program directly in windows, we can first configure the compilation environment so that we can directly use the java and javac commands under the CMD command. The specific process is as follows (take my own windows8 system as an example):
1) you need to configure environment variables in win8 through: control panel → system and secure → system → advanced system settings, as shown below:
2) you can find the environment variable in the "Advanced" category and enter it, as shown in the following figure:
3) find path in the system variable column and click Edit to start editing the environment variable:
4) add the path where javac is located in front of the variable value, and my path is "C:\ Program Files\ Java\ jdk1.8.0_102\ bin". The result is as follows:
5) after clicking OK, we have completed the configuration of the environment variable, but we need to reconfigure it when the java path changes. To avoid this trouble, we can do this by defining JAVA_HOME= C:\ Program Files\ Java\ jdk1.8.0_102\ bin. Click New in the system variable, as shown below:
6) create JAVA_HOME as the variable name, and the variable value is C:\ Program Files\ Java\ jdk1.8.0_102, as shown in the following figure:
7) add JAVA_HOME to path [refer to 4) method]:
8) create a new CLASSPATH variable
Enter the variable value as.;% JAVA_HOME%\ lib;%JAVA_HOME%\ lib\ tools.jar as shown in the figure:
Use these steps to complete the configuration of the Java compilation environment.
3. Check whether the compilation environment is configured successfully.
1) you can check whether the configuration is successful through the CMD command, as shown in the figure:
2) enter if the following figure indicates that the environment variable is configured successfully:
3) We can also use the set command to verify the contents of the environment variables. Enter set in the CMD command and press enter to view the contents of the environment configuration:
4) after executing the command, if you see the values of path, JAVA_HOME and Classpath as shown in the following figure, it proves that the configuration of the environment variable has been successful.
After these steps, the Java development environment has been set up. We can write programs not only through txt documents, but also through software such as Eclipse or Myeclipse. Personally, I prefer to use Myeclipse to write programs.
This is the end of the content of "what is the method of configuring graphics and text in the Java program development environment". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.