Installing Java, Eclipse and
Maven
2
Table of Contents
Complete Video Tutorial............................................................................................................................................................ 4
Installing Java.............................................................................................................................................................................. 5
Installing Maven ........................................................................................................................................................................ 11
Installing Eclipse....................................................................................................................................................................... 14
Importing Java Eclipse Project ............................................................................................................................................. 16
Importing a Maven Project into Eclipse.............................................................................................................................. 19
Important Maven Commands ................................................................................................................................................. 23
Set Up ...........................................................................................................................................................................................................23
mvn clean install .......................................................................................................................................................................................24
mvn tomcat7:run .......................................................................................................................................................................................26
3
4
Complete Video Tutorial
Watch the complete video tutorial explaining all the steps of installing java, eclipse and
maven on YouTube:
https://www.youtube.com/watch?v=DLPjCZ5n_SM
5
Installing Java
1. All commands should be run without double quotes.
2. Search for “install java jdk” on google.
6
3. Choose the first result from Google
4. Select the Java Platform JDK Link.
7
5. Accept the license agreement.
6. Choose the Java Install for your Operating System. If you are windows 64 bit operating system, choose the Windows x64 java.
7. Wait for the download to complete. Double click the file from the downloads folder. For Windows
8
8. Java Installer would launch up. Click Continue.
9
9. Click install on the next screen
10
10. Have a coffee and wait for the installation to complete. When the installation is complete, you would see the screen below:
11. Click close. We are ready to Rock and Roll. Do a Dance.
12. If you are on Windows : Open the Command Prompt window by clicking the Start button , clicking All Programs, clicking Accessories,
and then clicking Command Prompt. (or use Ctrl + Esc, and type in cmd and launch up command)
13. If you are on Mac or other OS, launch up Terminal.
11
14. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble shooting section.
15. Troubleshooting:
a. Check if there are any pre-existing Java installs. Uninstall them and reinstall again.
b. Temporarily turn off firewalls and antivirus software.
c. If you get file corrupt message, download the installation file again.
d. Check if you are on 32-bit OS or 64-bit OS and ensure you are making use of the right java download.
Installing Maven
1. Check if Java is installed properly. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble
shooting section of Java or Reinstall Java.
2. Note that Maven 3.3 requires JDK 1.7 or above, Maven 3.2 requires JDK 1.6 or above, while Maven 3.0/3.1 requires JDK 1.5 or above.
12
3. Download Apache Maven. Visit Maven official website, download the Maven zip file. Example : apache-maven-3.3.3-bin.zip
4. On Windows
a. Unzip the distribution archive, i.e. apache-maven-3.3.3-bin.zip to the directory you wish to install Maven 3.3.3. These instructions
assume you chose C:maven. The subdirectory apache-maven-3.3.3 will be created from the archive.
b. Add the unpacked distribution's bin directory to your user PATH environment variable by opening up the system properties
(WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding or selecting the PATH
variable in the user variables with the value C:mavenapache-maven-3.3.3bin.
c. You can check if you are using the right value by opening up the folder using “cd C:mavenapache-maven-3.3.3bin” and then
typing the command “mvn --version”.
d. Make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g.
C:Program FilesJavajdk1.7.0_51.
13
e. Open a new command prompt (Winkey + R then type cmd) (or terminal on mac) and run “mvn –version” to verify that it is correctly
installed.
5. Unix-based Operating Systems (Linux, Solaris and Mac OS X)
a. Extract the distribution archive, i.e. apache-maven-3.3.3-bin.tar.gz to the directory you wish to install Maven 3.3.3. These
instructions assume you chose /usr/local/apache-maven. The subdirectory apache-maven-3.3.3 will be created from the archive.
b. In a command terminal, add unpacked distribution's bin to your PATH environment variable, e.g. export
PATH=$PATH:/usr/local/apache-maven/apache-maven-3.3.3/bin.
c. Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.7.0_51 .
d. Run mvn --version to verify that it is correctly installed.
14
Installing Eclipse
1. Check if Java is installed properly. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble
shooting section of Java or Reinstall Java.
2. Search google for “download eclipse” and choose the first result.
15
3. Choose the right Operation System.
4. We recommend to choose “Eclipse IDE for Java EE Developers”. Choose 32 bit or 64 bit based on your operating system. (Right-click My
Computer, and then click Properties. If "x64 Edition" is listed under System, your processor is capable of running a 64-bit version of
Windows.)
5. Wait for the download to complete. Extract the zip file to a folder (Example : c:eclipse).
6. Note that there is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you
use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success
when initially decompressing Eclipse into a root directory (e.g. c:) and then moving it to a more appropriate home (e.g. c:Program
FilesEclipse)
7. Refer to Troubleshooting section of https://wiki.eclipse.org/Eclipse/Installation for more details about troubleshooting Installations
16
Importing Java Eclipse Project
1. Download the zip file & Un zip (extract the contents) the zip file.
2. Check if the folder contains a .project file. Highlighted in the image below. You can also open the folder in windows explorer and check
if it contains .project & .settings & .classpath files . (On mac these files are hidden. We used the command ls –la)
3. Copy the folder path into clipboard. (ctrl + c)
17
4. Launch up Eclipse and give folder name (Other folder name) as the workspace folder. Click OK.
5. Once Eclipse Launches up Go To File -> Import -> General -> Existing Projects into Workspace. Click Next.
18
6. Select Root Directory as the folder we copied earlier (the folder which contained .project, .classpath and .settings files).
7. You should see a project highlighted in the Projects section.
8. If you do not see any project, you are checking a wrong folder. Make sure you browse and select the correct folder containing the .project
and the .classpath files.
9. Click Finish.
10. Your project would be imported and You are ready to work on it.
11. Good Luck and Have a Safe Party
19
Importing a Maven Project into Eclipse
1. Download the zip file & Un zip (extract the contents) the zip file.
2. Check if the folder contains a pom.xml file. Highlighted in the image below. You can also open the folder in windows explorer and check
if it contains pom.xml file.
3. Copy the folder path into clipboard. (ctrl + c)
20
4. Launch up Eclipse and give folder name (Other folder name) as the workspace folder. Click OK.
21
5. Once Eclipse Launches up Go To File -> Import -> Maven -> Existing Maven Projects. Click Next.
6. Select Root Directory as the folder we copied earlier (the folder which contained the pom.xml file).
7. You should see a project highlighted in the Projects section.
22
8. If you are in a multi module project, then you would see multi projects ready for import.
9. If you do not see any project, you are checking a wrong folder. Make sure you browse and select the correct folder containing the
pom.xml files.
10. Click Finish.
23
11. Your project would be imported and You are ready to work on it.
12. Good Luck and Have a Safe Party
Important Maven Commands
Set Up
1. First you need a maven project. You can download maven projects that are associated with the video. Extract the zip file from our website
www.in28minutes.com and put it into a directory. Identify the top most directory containing the pom.xml. That’s your root pom.xml
24
2. Below is the structure of Zip for our Maven Tutorial. We want to run the third example. The root pom.xml for third project is present in the
folder “3.multi-module-maven-project”
3. Open up Command prompt or Terminal. CD to this folder. For example “cd c:maven-example3.multi-module-maven-project”
4. List the files in the folder. Dir command on windows (and ls on unix based OS). You should see the pom.xml.
5. You are all set to run the maven commands on this project.
mvn clean install
1. This command is used to build any project which is created using Maven. It will build all projects (and subprojects or modules) which are
present in the pom.xml.
25
2. Follow the instructions in the Set Up section. You should be in cmd prompt or terminal and your present working directory should be the
one containing pom.xml of the project you want to work on.
3. Run the command “mvn clean install”
4. All projects should build and you should see Build Success message.
5. If you don’t make sure you are in the correct directory. Go to the “Set Up” section and retry the steps again.
26
mvn tomcat7:run
1. First run “mvn clean install” on the root project. Follow steps given above.
2. Switch to directory containing the web application (war pom.xml). In the below example the war directory is in28minutes-web-servlet-jsp.
3. Run the command “mvn tomcat7:run”. Everything should succeed and you should see a message that the server is started. Note down the
port number.
4. Run the application in browser http://localhost:8080/. It should work and you are all setup to run a web application in tomcat. Good Luck
with learning developing applications now..
27
5.
Link
28
Course
Java EE Made Easy https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=EEPATTERNS-PDF-1
Spring MVC – 25 Steps https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-PDF-1
JSP Servlets – 25 Steps https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-PDF-1
Maven https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-PDF-1
C https://www.udemy.com/c-tutorial-for-beginners-with-puzzles/?couponCode=C-PDF-1
C Puzzles https://www.udemy.com/c-puzzles-for-beginners/?couponCode=CPUZZLES-PDF-1
Java Interview Guide https://gumroad.com/l/JavaInterviewGuide/website
29
Free Courses
https://www.udemy.com/eclipse-java-tutorial-for-beginners/
https://www.udemy.com/spring-tutorial-for-beginners/
https://www.udemy.com/junit-tutorial-for-beginners-with-java-examples/
https://www.youtube.com/watch?v=0jjNjXcYmAU

More Related Content

PDF
Mc sl54 051_ (1)
PDF
MAVEN - Short documentation
PDF
Tutorial j boss
PDF
Integrating Maven with Eclipse
PDF
Maven, Eclipse and OSGi Working Together - Carlos Sanchez
PDF
Tuscany : Applying OSGi After The Fact
PDF
sfdx continuous Integration with Jenkins on aws (Part II)
PDF
Eclipse IDE, 2019.09, Java Development
Mc sl54 051_ (1)
MAVEN - Short documentation
Tutorial j boss
Integrating Maven with Eclipse
Maven, Eclipse and OSGi Working Together - Carlos Sanchez
Tuscany : Applying OSGi After The Fact
sfdx continuous Integration with Jenkins on aws (Part II)
Eclipse IDE, 2019.09, Java Development

What's hot (19)

PDF
Installing d space on windows
PPT
sfdx continuous Integration with Jenkins on aws (Part I)
TXT
Easy install
PDF
Distribute cloud-environment-on-ubuntu-14-04-with-Docker
PDF
web services using java
PDF
Testing the Enterprise layers, with Arquillian
PDF
JUG Summer Camp - Une nouvelle vision des tests avec Arquillian
PDF
OSDC 2017 - Julien Pivotto - Automating Jenkins
PDF
Labri 2021-invited-talk
PDF
Arquillian in a nutshell
PDF
Security Testing Using Infrastructure-As-Code
PDF
Integrating Tomcat And Apache On Windows
PPSX
Java 9 and the impact on Maven Projects (Devoxx 2016)
PDF
Spring Live Sample Chapter
PPTX
Maven TestNg frame work (1) (1)
PDF
Openstack bug list
PDF
First steps with selenium rc
DOCX
Integrating tomcat with apache
Installing d space on windows
sfdx continuous Integration with Jenkins on aws (Part I)
Easy install
Distribute cloud-environment-on-ubuntu-14-04-with-Docker
web services using java
Testing the Enterprise layers, with Arquillian
JUG Summer Camp - Une nouvelle vision des tests avec Arquillian
OSDC 2017 - Julien Pivotto - Automating Jenkins
Labri 2021-invited-talk
Arquillian in a nutshell
Security Testing Using Infrastructure-As-Code
Integrating Tomcat And Apache On Windows
Java 9 and the impact on Maven Projects (Devoxx 2016)
Spring Live Sample Chapter
Maven TestNg frame work (1) (1)
Openstack bug list
First steps with selenium rc
Integrating tomcat with apache

Viewers also liked (20)

PDF
Java, Eclipse, Maven & JSF tutorial
PDF
Presenter manual oracle dba (specially for summer interns)
PDF
Using Maven to build Java & Android program
PDF
Oracle - Introduction
PDF
Database management system chapter13
PDF
KeyLabsTraining - Courses
PDF
Database management system chapter1
PDF
Database management system chapter5
PPSX
Java9 and the impact on Maven Projects (JFall 2016)
PPT
Oracle Architecture
ODP
Maven university-course
DOCX
DBMS lab manual
PPTX
Oracle Basics and Architecture
DOC
DBMS Practical File
DOC
Best sql plsql material
PPT
SQL : introduction
PPTX
SQL Basics
DOC
A must Sql notes for beginners
PDF
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
Java, Eclipse, Maven & JSF tutorial
Presenter manual oracle dba (specially for summer interns)
Using Maven to build Java & Android program
Oracle - Introduction
Database management system chapter13
KeyLabsTraining - Courses
Database management system chapter1
Database management system chapter5
Java9 and the impact on Maven Projects (JFall 2016)
Oracle Architecture
Maven university-course
DBMS lab manual
Oracle Basics and Architecture
DBMS Practical File
Best sql plsql material
SQL : introduction
SQL Basics
A must Sql notes for beginners
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples

Similar to Installing java, eclipse and maven (20)

PDF
InstallationGuide-JavaEclipseAndMaven_v2.pdf
PPTX
Maven TestNg frame work (1) (1)
PPTX
Backbase CXP Manager Setup
DOCX
BLCN532 Lab 1Set up your development environmentV2.0.docx
PDF
Apache maven, a software project management tool
PDF
How to Install Java on Debian 12 Using Apt and Deb.pdf
PDF
Exploring Maven SVN GIT
PPTX
PDF
Arquillian in a nutshell
DOCX
rgpv 7th sem for it & cs Cloud computing lab record
DOC
About Selenium Webdriver
PDF
Install spark on_windows10
PPTX
How to run java program without IDE
PPT
Maven: Managing Software Projects for Repeatable Results
PDF
Build server
PDF
Java Intro: Unit1. Hello World
PPTX
Installing maven on windows
PPT
Maven Setup
TXT
Apache ds building_from_source
InstallationGuide-JavaEclipseAndMaven_v2.pdf
Maven TestNg frame work (1) (1)
Backbase CXP Manager Setup
BLCN532 Lab 1Set up your development environmentV2.0.docx
Apache maven, a software project management tool
How to Install Java on Debian 12 Using Apt and Deb.pdf
Exploring Maven SVN GIT
Arquillian in a nutshell
rgpv 7th sem for it & cs Cloud computing lab record
About Selenium Webdriver
Install spark on_windows10
How to run java program without IDE
Maven: Managing Software Projects for Repeatable Results
Build server
Java Intro: Unit1. Hello World
Installing maven on windows
Maven Setup
Apache ds building_from_source

More from inTwentyEight Minutes (16)

PDF
Unit testing best practices with JUnit
PDF
Spring tutorial for beginners with examples
PDF
Solid principles - Object oriendte
PDF
Programming examples for beginners
PDF
Mockito tutorial for beginners
PDF
Maven tutorial for beginners
PDF
JUnit tutorial for beginners
PDF
JSP tutorial for beginners
PDF
Java servlets tutorial for beginners
PDF
J2ee (java ee) design patterns and architecture
PDF
J2ee (java ee) tutorial for beginners
PDF
Indian IT Industry at Crossroads : What should developers and managers do?
PDF
Eclipse tutorial for beginners
PDF
Design patterns for beginners
PDF
C tutorial for beginners - with puzzles
PDF
C interview questions and answers
Unit testing best practices with JUnit
Spring tutorial for beginners with examples
Solid principles - Object oriendte
Programming examples for beginners
Mockito tutorial for beginners
Maven tutorial for beginners
JUnit tutorial for beginners
JSP tutorial for beginners
Java servlets tutorial for beginners
J2ee (java ee) design patterns and architecture
J2ee (java ee) tutorial for beginners
Indian IT Industry at Crossroads : What should developers and managers do?
Eclipse tutorial for beginners
Design patterns for beginners
C tutorial for beginners - with puzzles
C interview questions and answers

Recently uploaded (20)

PPTX
Approach to a child with acute kidney injury
PPSX
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
Power Point PR B.Inggris 12 Ed. 2019.pptx
PPTX
Neurological complocations of systemic disease
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PDF
Health aspects of bilberry: A review on its general benefits
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PPTX
IT infrastructure and emerging technologies
PDF
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
PDF
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PPTX
Neurology of Systemic disease all systems
PPTX
Copy of ARAL Program Primer_071725(1).pptx
PDF
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
PDF
Laparoscopic Imaging Systems at World Laparoscopy Hospital
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PDF
FYJC - Chemistry textbook - standard 11.
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
Approach to a child with acute kidney injury
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
Diabetes Mellitus , types , clinical picture, investigation and managment
Power Point PR B.Inggris 12 Ed. 2019.pptx
Neurological complocations of systemic disease
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
Health aspects of bilberry: A review on its general benefits
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
IT infrastructure and emerging technologies
BSc-Zoology-02Sem-DrVijay-Comparative anatomy of vertebrates.pdf
Horaris_Grups_25-26_Definitiu_15_07_25.pdf
faiz-khans about Radiotherapy Physics-02.pdf
Neurology of Systemic disease all systems
Copy of ARAL Program Primer_071725(1).pptx
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
Laparoscopic Imaging Systems at World Laparoscopy Hospital
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
FYJC - Chemistry textbook - standard 11.
English 2nd semesteNotesh biology biopsy results from the other day and I jus...

Installing java, eclipse and maven

  • 2. 2 Table of Contents Complete Video Tutorial............................................................................................................................................................ 4 Installing Java.............................................................................................................................................................................. 5 Installing Maven ........................................................................................................................................................................ 11 Installing Eclipse....................................................................................................................................................................... 14 Importing Java Eclipse Project ............................................................................................................................................. 16 Importing a Maven Project into Eclipse.............................................................................................................................. 19 Important Maven Commands ................................................................................................................................................. 23 Set Up ...........................................................................................................................................................................................................23 mvn clean install .......................................................................................................................................................................................24 mvn tomcat7:run .......................................................................................................................................................................................26
  • 3. 3
  • 4. 4 Complete Video Tutorial Watch the complete video tutorial explaining all the steps of installing java, eclipse and maven on YouTube: https://www.youtube.com/watch?v=DLPjCZ5n_SM
  • 5. 5 Installing Java 1. All commands should be run without double quotes. 2. Search for “install java jdk” on google.
  • 6. 6 3. Choose the first result from Google 4. Select the Java Platform JDK Link.
  • 7. 7 5. Accept the license agreement. 6. Choose the Java Install for your Operating System. If you are windows 64 bit operating system, choose the Windows x64 java. 7. Wait for the download to complete. Double click the file from the downloads folder. For Windows
  • 8. 8 8. Java Installer would launch up. Click Continue.
  • 9. 9 9. Click install on the next screen
  • 10. 10 10. Have a coffee and wait for the installation to complete. When the installation is complete, you would see the screen below: 11. Click close. We are ready to Rock and Roll. Do a Dance. 12. If you are on Windows : Open the Command Prompt window by clicking the Start button , clicking All Programs, clicking Accessories, and then clicking Command Prompt. (or use Ctrl + Esc, and type in cmd and launch up command) 13. If you are on Mac or other OS, launch up Terminal.
  • 11. 11 14. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble shooting section. 15. Troubleshooting: a. Check if there are any pre-existing Java installs. Uninstall them and reinstall again. b. Temporarily turn off firewalls and antivirus software. c. If you get file corrupt message, download the installation file again. d. Check if you are on 32-bit OS or 64-bit OS and ensure you are making use of the right java download. Installing Maven 1. Check if Java is installed properly. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble shooting section of Java or Reinstall Java. 2. Note that Maven 3.3 requires JDK 1.7 or above, Maven 3.2 requires JDK 1.6 or above, while Maven 3.0/3.1 requires JDK 1.5 or above.
  • 12. 12 3. Download Apache Maven. Visit Maven official website, download the Maven zip file. Example : apache-maven-3.3.3-bin.zip 4. On Windows a. Unzip the distribution archive, i.e. apache-maven-3.3.3-bin.zip to the directory you wish to install Maven 3.3.3. These instructions assume you chose C:maven. The subdirectory apache-maven-3.3.3 will be created from the archive. b. Add the unpacked distribution's bin directory to your user PATH environment variable by opening up the system properties (WinKey + Pause), selecting the "Advanced" tab, and the "Environment Variables" button, then adding or selecting the PATH variable in the user variables with the value C:mavenapache-maven-3.3.3bin. c. You can check if you are using the right value by opening up the folder using “cd C:mavenapache-maven-3.3.3bin” and then typing the command “mvn --version”. d. Make sure that JAVA_HOME exists in your user variables or in the system variables and it is set to the location of your JDK, e.g. C:Program FilesJavajdk1.7.0_51.
  • 13. 13 e. Open a new command prompt (Winkey + R then type cmd) (or terminal on mac) and run “mvn –version” to verify that it is correctly installed. 5. Unix-based Operating Systems (Linux, Solaris and Mac OS X) a. Extract the distribution archive, i.e. apache-maven-3.3.3-bin.tar.gz to the directory you wish to install Maven 3.3.3. These instructions assume you chose /usr/local/apache-maven. The subdirectory apache-maven-3.3.3 will be created from the archive. b. In a command terminal, add unpacked distribution's bin to your PATH environment variable, e.g. export PATH=$PATH:/usr/local/apache-maven/apache-maven-3.3.3/bin. c. Make sure that JAVA_HOME is set to the location of your JDK, e.g. export JAVA_HOME=/usr/java/jdk1.7.0_51 . d. Run mvn --version to verify that it is correctly installed.
  • 14. 14 Installing Eclipse 1. Check if Java is installed properly. Type in the command “java –version” as shown in the screen. If it does not work, go to the trouble shooting section of Java or Reinstall Java. 2. Search google for “download eclipse” and choose the first result.
  • 15. 15 3. Choose the right Operation System. 4. We recommend to choose “Eclipse IDE for Java EE Developers”. Choose 32 bit or 64 bit based on your operating system. (Right-click My Computer, and then click Properties. If "x64 Edition" is listed under System, your processor is capable of running a 64-bit version of Windows.) 5. Wait for the download to complete. Extract the zip file to a folder (Example : c:eclipse). 6. Note that there is a known problem with the built-in decompression utility on all current versions of Windows. We recommend that you use a more robust decompression utility such as the open source 7zip when decompressing an Eclipse download. Some people report success when initially decompressing Eclipse into a root directory (e.g. c:) and then moving it to a more appropriate home (e.g. c:Program FilesEclipse) 7. Refer to Troubleshooting section of https://wiki.eclipse.org/Eclipse/Installation for more details about troubleshooting Installations
  • 16. 16 Importing Java Eclipse Project 1. Download the zip file & Un zip (extract the contents) the zip file. 2. Check if the folder contains a .project file. Highlighted in the image below. You can also open the folder in windows explorer and check if it contains .project & .settings & .classpath files . (On mac these files are hidden. We used the command ls –la) 3. Copy the folder path into clipboard. (ctrl + c)
  • 17. 17 4. Launch up Eclipse and give folder name (Other folder name) as the workspace folder. Click OK. 5. Once Eclipse Launches up Go To File -> Import -> General -> Existing Projects into Workspace. Click Next.
  • 18. 18 6. Select Root Directory as the folder we copied earlier (the folder which contained .project, .classpath and .settings files). 7. You should see a project highlighted in the Projects section. 8. If you do not see any project, you are checking a wrong folder. Make sure you browse and select the correct folder containing the .project and the .classpath files. 9. Click Finish. 10. Your project would be imported and You are ready to work on it. 11. Good Luck and Have a Safe Party
  • 19. 19 Importing a Maven Project into Eclipse 1. Download the zip file & Un zip (extract the contents) the zip file. 2. Check if the folder contains a pom.xml file. Highlighted in the image below. You can also open the folder in windows explorer and check if it contains pom.xml file. 3. Copy the folder path into clipboard. (ctrl + c)
  • 20. 20 4. Launch up Eclipse and give folder name (Other folder name) as the workspace folder. Click OK.
  • 21. 21 5. Once Eclipse Launches up Go To File -> Import -> Maven -> Existing Maven Projects. Click Next. 6. Select Root Directory as the folder we copied earlier (the folder which contained the pom.xml file). 7. You should see a project highlighted in the Projects section.
  • 22. 22 8. If you are in a multi module project, then you would see multi projects ready for import. 9. If you do not see any project, you are checking a wrong folder. Make sure you browse and select the correct folder containing the pom.xml files. 10. Click Finish.
  • 23. 23 11. Your project would be imported and You are ready to work on it. 12. Good Luck and Have a Safe Party Important Maven Commands Set Up 1. First you need a maven project. You can download maven projects that are associated with the video. Extract the zip file from our website www.in28minutes.com and put it into a directory. Identify the top most directory containing the pom.xml. That’s your root pom.xml
  • 24. 24 2. Below is the structure of Zip for our Maven Tutorial. We want to run the third example. The root pom.xml for third project is present in the folder “3.multi-module-maven-project” 3. Open up Command prompt or Terminal. CD to this folder. For example “cd c:maven-example3.multi-module-maven-project” 4. List the files in the folder. Dir command on windows (and ls on unix based OS). You should see the pom.xml. 5. You are all set to run the maven commands on this project. mvn clean install 1. This command is used to build any project which is created using Maven. It will build all projects (and subprojects or modules) which are present in the pom.xml.
  • 25. 25 2. Follow the instructions in the Set Up section. You should be in cmd prompt or terminal and your present working directory should be the one containing pom.xml of the project you want to work on. 3. Run the command “mvn clean install” 4. All projects should build and you should see Build Success message. 5. If you don’t make sure you are in the correct directory. Go to the “Set Up” section and retry the steps again.
  • 26. 26 mvn tomcat7:run 1. First run “mvn clean install” on the root project. Follow steps given above. 2. Switch to directory containing the web application (war pom.xml). In the below example the war directory is in28minutes-web-servlet-jsp. 3. Run the command “mvn tomcat7:run”. Everything should succeed and you should see a message that the server is started. Note down the port number. 4. Run the application in browser http://localhost:8080/. It should work and you are all setup to run a web application in tomcat. Good Luck with learning developing applications now..
  • 28. 28 Course Java EE Made Easy https://www.udemy.com/java-ee-design-patterns-architecture-and-frameworks/?couponCode=EEPATTERNS-PDF-1 Spring MVC – 25 Steps https://www.udemy.com/spring-mvc-tutorial-for-beginners-step-by-step/?couponCode=SPRNGMVC-PDF-1 JSP Servlets – 25 Steps https://www.udemy.com/learn-java-servlets-and-jsp-web-application-in-25-steps/?couponCode=JSPSRVLT-PDF-1 Maven https://www.udemy.com/learn-maven-java-dependency-management-in-20-steps/?couponCode=MAVEN-PDF-1 C https://www.udemy.com/c-tutorial-for-beginners-with-puzzles/?couponCode=C-PDF-1 C Puzzles https://www.udemy.com/c-puzzles-for-beginners/?couponCode=CPUZZLES-PDF-1 Java Interview Guide https://gumroad.com/l/JavaInterviewGuide/website