1. Demand background
Take Great Wall's domestic computer as the main force of research and development, and make full use of its value
2. JDK installation
Open the command line, install the default jdk and jre first, and ensure that most java applications can run (openjdk11 should be installed by default), but in the actual development process, we will need multiple identical jdk versions to coexist, and we will discuss this later. speak.
sudo apt-get install default-jdk default-jre
Other jdk can be downloaded from the official oracle to facilitate switching in the idea (download binary)
https://www.oracle.com/java/technologies/javase/jdk11-archive-downloads.html
3. Install maven, gradle
sudo apt-get install maven gradle
4. IDE configuration
The idea series and eclipse are the main ones, and others such as netbeans have not been tried. After the idea runs, it can also support other languages through plug-ins (my personal habit will be to use idea for java, and vscode for others)
4.1 idea
The idea editor officially does not directly release the version for PKS
Supplement: In the official application market of v10 sp1 2203, the version of idea community is provided which can be downloaded and used directly <br>We choose the binary version without JDK to download through the other in the download page.
https://www.jetbrains.com/en-us/idea/download/#section=linux
Click on the lower left corner to download other versions
https://www.jetbrains.com.cn/idea/download/other.html
Select no jbr version Linux without JBR (tar.gz)
https://download.jetbrains.com/idea/ideaIU-2022.1.2-no-jbr.tar.gz
After the download is complete, extract it to a specific folder to run (for convenience, I put all of them in the main folder)
You can choose the ultimate or community version according to your personal needs. Here I choose the community free version, which has been satisfied
tar -zxvf ideaIC-2021.3.3-no-jdk.tar.gz #This can be solved by the graphics toolkit
cd idea-IC-213.7172.25/bin/ # Enter the installation directory
./idea.sh # Enter the command in the bin directory to start IDEA
Attachment: project support for different SDK versions in idea
The rest is the same as you usually do in windows and linux x86
4.2 cipse
Eclipse is relatively more convenient, in terms of installation. Provide official installation tools
https://www.eclipse.org/downloads/
select download pacakges
https://www.eclipse.org/downloads/packages/
Select the aarch version of the corresponding version of eclipse, we choose to install through the installer here
https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2022-03/R/eclipse-inst-jre-linux-aarch64.tar.gz
After downloading and unzipping
run ./eclipse-inst
The java enterprise and web versions are selected here
After the installation is complete, start and run, and other operations are consistent with the Windows and Linux x86 versions
4.2.1 Some other settings
Open the eclipse market (help/market place), search for spring, and install spring tools 4.
eclipse select Help --> Install New Software and enter the address http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/
Check the option, then wait for it to download and install, restart eclipse after completion
lombok
You can install lombok directly from within eclipse, and in that way, you can also include lombok as part of your team eclipse deployment configuration. To do this, use update site https://projectlombok.org/p2:
Install this, restart eclipse, if it doesn't take effect, download lombok.jar (plus execute permission), double-click lombok.jar, in the dialog box Specify location... Select the Eclipse you want to install the plug-in, then click Install / Update in the lower right corner, very The installation is almost complete, click Quit Installer.
The change is to specify the absolute path of lombok.jar in eclipse.ini
4.3 Some other settings after the project
Open the terminal window, enter the directory where the main pom of the project is located, and execute mvn install to install the dependency package for the project.
Note: Take jeecg-boot as an example, jeecg needs to use jdk1.8, and jdk11 will make an error, please refer to the eclipse jdk switch in jdk installation; on the other hand, there is also an error related to sun.dc.path. into oracle jdk problem is solved.
This article mainly talks about the construction of the environment. After the preparation is completed, the actual project will be used as an example for a practical tutorial.
Kylin operating system column:
https://segmentfault.com/blog/kylinos
Article published in SegmentFault
Contact email: 1179611323@qq.com
Group: 662512340
Release log:
20220611 first release
20220801 Added instructions for replacing openjdk with oracle jdk aarch version when there are some inexplicable errors such as sun.dc.path
20220801 Added instructions for downloading the idea community version in the app market
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。