I am a huge Eclipse IDE fan. It reduces development time by a huge factor. If you are well-versed with the keyboard shortcuts, writing a java program in eclipse takes few minutes once your logic is in place. Browsing through other related projects, adding jars to your project, building and testing, it makes it so much simpler!!!! Whoever came up with this IDE funda - wow :) I remember writing programs on my notepad!! Of course, you realize how dependent you have become on IDE's during Coding Interviews..lol... imagin pressing Ctrl+Space on collabedit so it would suggest functions for the String class... :P.
Anyway, getting a hang of project set ups in Eclipse can sometimes be a pain and might make you not like Eclipse, which I dont wannnttt :) So to increase the fan following for eclipse, I'll share a few project setups specific to the development projects that one might use.
Hope it helps!! I will come back with maven set up in Eclipse :)
Cheers :)
Anyway, getting a hang of project set ups in Eclipse can sometimes be a pain and might make you not like Eclipse, which I dont wannnttt :) So to increase the fan following for eclipse, I'll share a few project setups specific to the development projects that one might use.
Setting up web development environment in eclipse
1. Make sure you have java - jre1.6.0_07 and jre6
2. Set environment variables for the same
CLASSPATH = C:\Program
Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;%CATALINA_HOME%\common\lib;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
JAVA_HOME = C:\Program Files\Java\jre1.6.0_07
JRE_HOME = C:\Program Files\Java\jre1.6.0_07
PATH =
C:\oracle\product\10.2.0\client_1\bin;C:\FileNet\IDM;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\system32\WBEM;C:\Program
Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL
Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\Microsoft SQL
Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual
Studio
8\Common7\IDE\PrivateAssemblies\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program
Files\Tealeaf;%CATALINA_HOME%\bin;C:\Program Files\Java\jre1.6.0_07\bin
3. Create your dynamic web project
4. Go to project->Properties->Server
Add server
Download and install Tomcat Apache 7 through eclipse
5. Set up the server properties as follows
6. Set environ variable for catalina
CATALINA_HOME = C:\apache-tomcat-7.0.29
7. Change port number in the server.xml file of Tomcat if
needed…only 8080-8081
8. Create jsps in WEB-INF
9. Create servlets in Java Resources
10. Make sure to do servlet mapping in web.xml
11. This is how the hierarchy/ folder structure will look like.