Saturday, 12 August 2017

How to Install Maven?

How to Install Maven?

Prerequisite
Steps to Install Maven

1) Download Maven from link and unzip it at your preferred location.
  • apache-maven-3.5.0-bin.zip for Windows
  • apache-maven-3.5.0-bin.tar.gz for Linux
  • apache-maven-3.5.0-bin.tar.gz for Mac
2) Now you need to set Maven environment variables
Add MAVEN_HOME, MAVEN, MAVEN_OPTS to environment variables.

  • For Windows, set the above environment variables.
    MAVEN_HOME=MAVEN unzip directory path\apache-maven-3.5.0MAVEN=%MAVEN_HOME%\binMAVEN_OPTS=-Xms256m -Xmx512mAppend the string ;%MAVEN% to the end of the system variable, Path.
  • For Linux, open command terminal and set the above environment variables.
    export MAVEN_HOME=MAVEN unzip directory path\apache-maven-3.5.0export MAVEN=%MAVEN_HOME%\binexport MAVEN_OPTS=-Xms256m -Xmx512mexport PATH=$MAVEN:$PATH
    • For Mac, open command terminal and set the above environment variables.
    • export MAVEN_HOME=MAVEN unzip directory path\apache-maven-3.5.0
      export MAVEN=%MAVEN_HOME%\bin
      export MAVEN_OPTS=-Xms256m -Xmx512m

      export PATH=$MAVEN:$PATH


        3) Verify Maven installation
        • For Windows, open command console and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven. 
        • For Linux, open command terminal and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven.
        • For Mac, open terminal and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven.

        Congratulations! you have successfully done the Apache Maven setup for all your projects.

        Labels: , , , , , , , , , ,

        Monday, 1 May 2017

        How to install and setup Java


        1) Download java JDK. link to download


















        2) Select Java jdk as per your system configuration




        3) After that you will get an '.exe' file install it

        4)After installation




        5) Here you can see the java "C:\Program Files\Java"

        6)Create a 'JAVA_HOME' Environment variable 



        7) In 'Path' Environment variabe add '%JAVA_HOME%\bin' 



        8) After OK, You are done with the setup.

        9) To verify open 'command prompt' (To access 'cmd' follow below process)
        (Win+R), Enter 'cmd' in run and then Enter'

        10) Write 'javac' on cmd and then you can see some stracktrace


        11) Now you are done

        Comment me if you face any challenges during this process

        Labels: , , , , , ,