Create Java, Tomcat & Maven Environment Variable

At frinst download JDK and install .
Now create Java environment variable
Right click on My computer ->Properties -> Advanced system setting


                Click on Environments Variables…



                      Click on "New…" button

JAVA Environment Variable:

1.JAVA_HOME

Click OK

2. CLASSPATH:

Click on OK

3. Path: Same as create path.
Variable name: path
Variable value: %JAVA_HOME%\bin

Now go to RUN and type cmd and OK


Type java.exe and enter


After



Tomcat Environment Variable:

Now download TomCat  and extract this zip file .
And create Environment Variable.

1.CATALINA_HOME: same as java_home i.e
Variable name: CATALINA_HOME
Variable value: G:\Eclipse\apache-tomcat-8

Now go to Tomcat server bin folder open “startup.bat”,type your browser address bar “localhost:8080” show this windows


2.Set Password and Role:
Go to conf folder and open “tomcat-users.xml”
Edit flowing:
<!--
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
-->
 <role rolename="manager-gui"/>
  <role rolename="admin-gui"/> 
  <user username="admin" password="admin" roles="admin-gui,manager-gui"/>
</tomcat-users>
Maven Environment Variable:

Now download maven  and extract this zip file .
And create Environment Variable.

1. MAVEN_HOME: same as java_home i.e
Variable name: MAVEN _HOME
Variable value: G:\Eclipse\apache-maven-3.2.3

2. Path:
Variable name: path (this variable already, so edit this variable)
Variable value: %MAVEN_HOME%\bin

You go to the run->cmd


Type “mvn --version” ,press enter key








Share on Google Plus

About Samsul Hoque

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment