ECLIPSE AND TOMCAT INSTALLATION
If you want to
develop java based web sites there are lots of choices that you can select as utility tool. One
of them is the apache tomcat which is actually servlet container. First, you
need to set your local tomcat and you should introduce it to your eclipse ide
or which ide you choose.
Download
apache tomcat from this url http://tomcat.apache.org/download-55.cgi or another version from another url. And choose the
package which is suitable with your operating system. If you
are using core windows you can select .zip if you are using core linux/unix you
can choose .tar. I was using windows during writing this short document, so i downloaded the
zip one into my C:/.../. Extract all files into C:/wherever you want/ apache and do not forget, this
is your tomcat installation path.
picture 1
Now open your
eclipse indigo/hellios/juno ...etc that includes web developing tools plugin. Open your
servers tab and lets begin to introduce your local apache tomcat to the eclipse ide. My eclipse had some servers introduced before so your server tab may come as empty however it will be full at last.
As you can see
from picture 1 there must be a servers tab and you will define your server into this
tab.
If you can not
see any of servers tab you should install web developer tools to your eclipse as in picture2.
picture 2
Open your HelpàInstall New Software and you can write or
select the web tools appropriate with the eclipse then after you install you
can see from What is already installed section as in picture 3. After you restart your eclipse
open your servers tab again now continue.
In your empty
servers tab click right and open new then click to Server.
picture 3
In your empty
servers tab click right and open new then click to Server.
picture 4
Now you should
choose the tomcat version that you downloaded before. I downloaded 5.5 version.
picture 5
Then click to
next.
picture 6
As you can see above you should choose your tomcat installation path(root of apache tomcat)
picture 7
After you click next you should choose the JRE of the running tomcat this gives you the flexibility of running same tomcat with different JRE of course with different tomcat servers.
picture 9
At the end of your selection, you can test with starting the server.
Now you are ready to create a web project and deploy it to your local server and run it also export as war and you can run it on the different servers which have the same customization.








No comments:
Post a Comment