Location>code7788 >text

java developer, what do you do on the first day of the job, with advance knowledge

Popularity:340 ℃/2024-07-25 23:45:40

2024.7.24, the empire tonight heavy rain, in the rain of the night suitable for what, yes suitable for knocking code, writing blogs, tonight to talk about joining a new company, the first day of what to do.

Whether you just graduated from the novice white, or work for more than ten years of the workplace old man, into a new company, as long as it is still doing research and development, then there is no doubt that, after receiving a computer, the first thing is to install the environment, installing the environment is estimated to spend half a day or half a day, the next step is to open a variety of permissions, and so on, all of which are cleaned up almost a year should be the end of the first day of the end of a relaxed and enjoyable way to close the book.

Let's talk about java as an example.

I. Installation environment

As a java engineer surely the first thing to think of is to install the JDK. before installing theTo confirm the versionIt is best to confirm with colleagues in the same group, what is the version of everyone, or the project is being developed to use the version of what, do not require a small version must be consistent, but the big version must be consistent, so that perhaps because of the version of the problem caused by the code you write on the server can not be compiled to run and other issues. Here is still a common JDK8 as a demonstration, a brief introduction to the installation process.

1. Install JDK8

1.1. Installation

You definitely need the installer before installing it, and you can download it from the official website, the/java/technologies/downloads/?er=221886#java22

You can see that the latest version of the official website has been to JDK22, but here is still the use of mainstream JDK8, more pitiful is to download from the official website need to log in, here will not go down, use the previously downloaded for installation.

After clicking on the installer, the following screen appears.

Click on "Next" installation can be, during the installation will allow you to choose the location, in the process will also be prompted to install the JRE path, it is recommended that the JDK and JDK directory can be listed side by side, and finally prompted the installation is complete. After the installation does not mean the end, the following to configure the environment variables.

1.2 Configure environment variables

Configure JAVA_HOME, case-insensitive, capitalization is recommended here.

Find the environment variables, in the environment variables of the current logged in user environment variables and system environment variables, because only one user to use, so configure wherever you can, here choose to configure in the system environment variables.

After that, create the new JAVA_HOME variable

Just click "OK".

Configure path, that is, specify the path of the command search, like javac java-version commands will go to the path to find the path. path variable is already there, do not need to create a new edit.

Point to the right side of the "new" can be, the following chart, if not this separate display, but a long list of configuration, to write this ";%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin", pay attention to the front of the There should be a semicolon for the state.

In addition, there is a CLASSPATH variable, this can not be matched, as to why, you can refer to this/p/466579414

2. Install maven

After installing the JDK, you have to install maven, whose official download is/

The latest stable version is 3.9.8, and the official website has the following quote

You can see that maven is required to JDK, so this is why the first reason to install the JDK, then maven is how to find the JDK, is configured through the front of the JAVA_HOME environment variable.

Let's go for a lower version here, 3.8.8, download here:/dist/maven/maven-3/3.8.8/binaries/

Download the windows version, unzip it after the download is complete, maven does not need to be installed directly unzipped. After decompression is complete, configure the environment variable MAVEN_HOME.

MAVEN_HOME=D:\Program files\maven\apache-maven-3.8.8

After that, you also need to configure the path

Then, you can use "cmd" to bring up the command line and verify it

You can see that MAVEN_HOME is printed, along with the path to the jre used.

Finally, I would like to say, what is the role of installing maven, maven is used to manage the dependencies used in the project, which relies on the pom file to manage, and also provides a package, compile, release and other commands used to manage the entire life cycle of the project.

3. Install git

The official website for git is:/

The process of installing git has been written about in a previous blog, so I won't go into it here, but refer to it:/teach/p/

4. Installation of idea

In ten years, the author used myeclipse, then eclipse, and then switched to idea, in fact, the integrated development environment regardless of the use of which can be, mainly depends on the company to use what tools, then choose which tool can be.

From the official website:/idea/download/?section=windowsDownload can be, there are two versions, paid version and community version, the community version is relatively less functional, but can also meet the normal development and use, it is recommended to be able to choose the paid version of the paid version, the paid version can be used for 30 days, after the words we all know.

After downloading, you can install it directly by choosing the installation path.

Here the idea is installed, the next step is to have a development environment, no, but also to open a variety of permissions.

II. Opening Privileges

General units need to open the permissions git, knowledge base, various system accounts including internal use of management systems, system monitoring, etc., anyway, that is, a variety of permissions a pass open.

III. Entry requirements development

Installation of the environment, open the permissions, you will really participate in the development work, the project will be tight directly to the requirements of the development, the project is not tight may be the first to read the documents, familiar with the company's projects, and slowly re-exposure to the project.

 

Well, today's sharing is here, welcome to leave a comment like oh!