“This is the first day of my participation in the Gwen Challenge in November. Check out the details: The last Gwen Challenge in 2021”
Directory:
Environment Description:
Preface:
Abstract:
Download and install IDEA
1. Idea download
2. Idea copy decompression
3. Idea installation
Ii. Idea Import Project:
Maven configuration:
JDK configuration:
V. Project Operation:
1. Project initialization of IDEA
2. Import the JAR package of IDEA into the Ubuntu local JAR library
3. Idea operation project
Six, group band problem solving:
1. Solve the problem of garbled characters displayed in the. Properties file of IDEA
2. Configure to automatically add author and creation time in the create file header
Vii. Copyright:
8. Ubuntu Self-experience:
Environment Description:
- System environment: Ubuntu20.04
- VMware: Pro15
- The JDK: jdk1.8
- Idea: 2019.3
Preface:
Ubuntu system has always been a forgotten system. Compared with the current hot Windows system, I think more friends will be much more skilled than Ubuntu system. Ubuntu, launched in 2004, was one of the most famous Linux distributions and is now the most widely used version of Linux, with more than 1 billion users, but is now being forgotten.
However, recently, due to the replacement of the technical manager, the new office will be replaced three times. In order to make technological innovation, the first thing we proposed was to transfer the development environment to Linux environment. We proposed to keep pace with the production environment. But it took time to get used to the differences between Ubuntu and Windows;
The first one is the development environment. Under Win, all kinds of software definitely do not support Ubuntu system. So next, I will give a detailed overview of my development process in Ubuntu environment.
I am not a pure Linux developer, so I still play the old game, I will first build a virtual machine (VMware) on Win, I will only use Ubuntu system for project development, and I will play the rest on Win!
How to install idea on Ubuntu? How is the project deployed? Project how to configure a variety of environment, etc., with the same experience of iron son must see, trample thunder guide, you deserve to have!
Abstract:
This article mainly introduces how to install IDEA on Ubuntu, how to avoid the possible problems of IDEA operation and deployment projects, the packaging and uploading process of projects, and solve a series of problems such as garbled code.
If you finally find this article helpful, please don’t hesitate to give your thumbs up and pIA light up is done!!
Download and install IDEA
1. Idea download
1). Below is the download link, click on it according to the address, and then download it according to the text below.
IntelliJ IDEA: JetBrains is a powerful and ergonomic Java IDE
Old version download link: Other version – IntelliJ IDEA
2). Bug bug download version 2019.3; Friendly tip: try to get under version 2021.1 anyway (you know!) , other see their own preferences! The version is not very different.
2. Idea copy decompression
3). After downloading it, select the [deaiU-2019.3.5.tar. gz] and copy it to Ubuntu. Put it in any folder, preferably create an empty folder and unpack it. I unzipped it directly into the software folder;
3. Idea installation
4). After decompression, there will be another folder [deA-IU-193.7288.26] under the same folder, which will be put into the bin directory of the sub-folder of this folder; You can see idea.sh; Start by command.
CD idea - IU - 193.7288.26 / bin. / idea. ShCopy the code
5).. /idea.sh After the press enter, a prompt box will be displayed; Select “Do not Import Settings” and click OK
6). Then, the installation process of IDEA is the same as that of Windows. Check agree, and continue;
7). This depends on the mood, anyway, IDEA software internal error will not be the first time to help you solve, ha ha ha;
8). Just be quick.
9). Try it for 30 days and then click Evaluate. How to crack the back
10.) ok. Idea has been successfully installed so far
11). Ubuntu home page can be directly the idea shortcut, in fact, with Windows operation no difference; Double-click to open
Ii. Idea Import Project:
12). Then; Clone your online project with Git. If you can’t clone it, please refer to “How to Use Git clone on Ubuntu and Submit your code to GitLab” by Bug. Select File in the upper left corner and click Open to find the location of your project. Finally, click OK; Can;
Maven configuration:
13) File – maven – > Settings – > search maven
14). Change to your Local Maven source, Local repository: the maven repository you specified.
Custom settings. XML is not configured or does not exist; How to install Maven in Ubuntu and set the definition source
JDK configuration:
15). Then check whether the JDK is selected; Then there is no need to configure anything else, IDEA will automatically configure it for you.
The JDK is not installed. How to install the JDK and environment variables in Ubuntu
V. Project Operation:
1. Project initialization of IDEA
16). After configuring Maven JDK, remember to click OK; As you can see, the project is initializing, downloading the JAR dependencies needed in the project;
17). This is the picture one minute later, the first import is slow, just wait patiently to finish all the dependencies required by the project;
18). You may encounter some JAR packages that cannot be downloaded on the domestic Maven passive, so you can find the corresponding JAR online and guide it to the local library by command.
2. Import the JAR package of IDEA into the Ubuntu local JAR library
19). Use the command to import the JAR package into the local repository
MVN install: install-file-dfile =C:\Users\Administrator\Desktop\code\jna package \examples.jar -dgroupid =com.sun.jna - DartifactId = examples - Dversion = 3.0.9 - Dpackaging = jarCopy the code
The commands are represented as follows:
-dfile: path of the jar package //C:\Users\Administrator\Desktop\code\jna package \examples.jar
-dgroupid: indicates the groupId //com.sun.jna corresponding to the pom. XML file in the project
-DartifactId: artifactId //examples in poM files
-dversion: indicates the version //3.0.9 in the POM file
-Dpackaging: indicates the packaging method // JAR
20). Put together one according to the instruction format;
The jar was successfully imported into the specified package directory. The jar was successfully imported into the specified package directory.
22). If you are not sure, you can check it by going to your Maven local library and following the hierarchy: com> Sun >jna>examples, you will find the JAR already exists.
23). Click the refresh in Maven to load the jar you just imported into your project;
3. Idea operation project
24). Right-click the startup class and select Run xxxApplication.
Six, group band problem solving:
1. Solve the problem of garbled characters displayed in the. Properties file of IDEA
25). The Chinese characters of all.properties files are garbled, which is intolerable and must be solved immediately!
26). Open File->Settings-> Editor->File Encoding. Check;
27). It looks so much better, Noo;
2. Configure to automatically add author and creation time in the create file header
28). Open File->Settings-> Editor->File and Code Templates
Then configure the template below in the File Header
/**
* @author XXX
* @date ${DATE} ${TIME}
*/
Copy the code
Vii. Copyright:
Because the platform does not allow the release of relevant software infringement content, so give iron son a way of apology, in order to show my apology sincerity degree, for everyone to send a welfare bar! A feast for the eyes, presented in most people’s minds recognized goddess ~~~
Hey, guys, we’re all here. Give bugs a thumbs up
Three even
, clearly hint! Explicitly hint! Explicitly hint!
8. Ubuntu Self-experience:
Predecessor is always based on Windows operation, including the previous Linux environment is Ali Cloud or CenOs, has not used the desktop version style Linux version; Use down, sum up a few points: for reference only, do not like spray ~
- Package management: Ubuntu’s APT package management, APT stands for “advanced packaging tool”, can automatically deal with their dependency files and maintain existing configuration files.
- Software source: unlike the Windows platform a lot of good and bad are intermingled of third-party software, ubuntu have their own maintenance available for users to download software, users only need to update software sources, in order the audience can easily download and install the software, and unnecessary worry about software quality problems, thus greatly reducing the instability of the system.
- Terminal: the default shell is Bash, simple and powerful, can complete most of the mouse operations, with skilled words can get rid of the mouse bar.
- Boot up speed: Ubuntu is faster than Windows, and there is no lag time after boot, which may be due to the need to load the Windows subsystem when Windows boots up.
- System compatibility: Windows has a relatively fixed kernel API, because it is downward compatible, and correspondingly, the system is also downward compatible, so the same software in the development of different versions of Windows system differences are relatively small. With Ubuntu, there is no such thing as system compatibility because each version has its own source.
If you are interested in the articles written by Bug Bug, you are welcome to subscribe to bug Bug bug’s column “Ubuntu Zero-based Teaching”. I’ll teach you how to understand Ubuntu! I use my hands to achieve your dream ~
In addition, if there are any misunderstandings in the article, please correct them more. Meanwhile, you are very welcome to leave comments below, and the bug bacteria will reply to you as soon as possible
In summary, this is the dry goods, if not enough to eat, bug bacteria try again ~~~
Recommend:
- How to install Ubuntu20.04 on Windows 10
- How to install IDEA and IDEA stomp guide on Ubuntu20.04
- How to install maven and environment variable configuration on Ubuntu20.04
. .
For more articles on Ubuntu, check out Bug Bug’s Ubuntu Zero-based Teaching column, which will continue to be updated. Teach you how to understand Ubuntu! I use my hands to make your dreams come true.
If this article has been helpful, please put your thumb in the bottom left corner of the article. (# ^. ^ #);
If you like the articles shared by Bug bug, please send bug bug a note! The danjun ‘ᴗ, you guys will have a cameo appearance with you.
If you have any questions about this article, please leave a comment below or join the group [Group number: 708072830].
In view of limited personal experience, all views and technical research points, if you have any objection, please directly reply to participate in the discussion (no offensive comments, thank you);
Copyright notice: This article is the blogger’s original article, reprint please attach the original source link and this article statement, all rights reserved, piracy will investigate! (* ^ del ^ *).