Monday, March 11, 2024

Setup Your Development Environment

Java/J2EEDevelopment Environment

  1. Install JDK
  2. Setup & Configure Eclipse IDE
  3. Setup Apache Tomcat/JBoss Server
  4. Setup Apache Maven
  5. Setup JUnit
  6. Setup Hudson/Jenkins
  7. Create a GitHub account for the code repository.

1. Install a Java Development Kit (JDK)

  1. Browse to Oracle’s Java SE Development Kit downloads
  2. In the section titled Java SE Development Kit 9.0.1, read the license and, if you agree, click Accept License Agreement
  3. Click on jdk-9.0.1_windows-x64_bin.exe (or the right download for your OS)
  4. Run the downloaded JDK installer using Run As Administrator
  5. Add the Windows (or Linux) Environment Variable JAVA_HOME. Set it to the root folder of your newly-installed JDK, which for me is C:\Program Files\Java\jdk1.9.0.1

2. Install Eclipse Oxygen for Java EE

  1. Browse to Eclipse Downloads
  2. Click on the Download button under Get Eclipse.
  3. On the resulting page, click on the Download button. (Note: 32-bit or 64-bit must match your installed JDK.  If you installed JDK-9.0.1_windows-x64 above, so download the 64-bit Eclipse.)
  4. Run the downloaded installer using Run as Administrator.
  5. Choose the version of Eclipse you wish to install. I prefer Eclipse IDE for Java EE developers for Java work.

3. Setup Apache Tomcat Server

  1. Download Apache Tomcat from this link. I’m using version 9.0.10.
  2. Extract it to a folder
  3. Open Eclipse Environment -> Click on Server Tab->
    Click on No servers are available -> Click this link to create a new server...->Click Tomcat v9.0 Server and Next
  4. Select the Apache Installation directory and Click Finish
  5. You should see the Tomcat v9.0 Server at localhost [Stopped, Republish] under the server tab. Double-click on it to verify HTTP port information. By default, the HTTP port is 8080.
  6. Now right-click on Server and click Start.

4. Setup Maven with Eclipse as an Embed Program (if Maven is not available with your Eclipse)

  1. From the Eclipse Help menu, select install new software
  2. In the pop-up dialog, enter Name: m2e, Location:
    http://download.eclipse.org/technology/m2e/releases press OK
  3. In the available Software dialog, press Select All-> press Next
  4. In Install Details, press Next
  5. Review and accept the Licenses -> Press Finish

5. Setup JUnit with Eclipse (if Junit is not available with your Eclipse)

  1. Download the latest version of the JUnit jar from https://junit.org/junit5/
  2. Open Eclipse > Right-click on the project and click on property > Build Path > Configure Build Path and add the junit-5.4.2.jar in the libraries using the button Add External Jar.

6. Configure Jenkins

  1. Go to Help | Install New Software
  2. Add a site for Mylyn Integrations and click on Next
  3. Review the items to be installed and click on Next.
  4. Accept the terms of the license agreement, click on Finish
  5. Once finished, restart Eclipse
  6. In the Windows menu, click on Views
  7. Select Mylyn and click on Builds, click Ok
  8. In the Builds section, click on the build server link
  9. Select Hudson (supports Jenkins) and click on Next
  10. Provide Jenkins Server, User, and Password; click Finish
  11. Find the list of jobs in the Build section
  12. Select any job and click on Run Build

2. Python Development Environment

  1. Download and install Anaconda for your OS from https://www.anaconda.com/distribution/

3. Android Development Environment

  1. Download and install the latest version of Android Studio for your OS
Share:

0 comments:

Post a Comment