Ensure that the Jenkins service is running and go to
http://localhost:8080/. From there, click on the Manage Jenkins link on the left menu to view the list of links leading to different configuration pages. Click on the top one, Configure System, to navigate to the configuration dashboard. This dashboard features many different sections which we will configure one by one.
Click on the Add JDK button to expand this section. If your installed JDK has not been auto-detected by Jenkins, you have to enter it manually in the Name field. Unless, of course, you want Jenkins to install JDK automatically for you, in which case you check the Install automatically checkbox.
Click on the Add Maven button ...