I made a JSP-Project in Eclipse (with Tomcat 7) but when I run the page, i get an ClassnotFoundExcption.
in my Project i work with Controllers to bind Data to the JS
For Java-EE projects converted to Maven project with jstl dependency in pom.xml
:
In my case, I needed to add Maven dependencies to the build path
Walkthrough:
Update: also check your Execution enviroment && Workspace JRE are correctly setup.
I had this problem because in the eclipse configuration I had the JDK folder (jdk1.6.0_45
) set as the JRE location. Instead it should have been set to jre6
in my "Installed JREs" preferences.
1.Open command prompt using "Run as administrator" or using sudo in Linux
Note the version number and the accurate Location.
Run 'startup.bat' and the Server should start
Open a web browser entered http://localhost:8080/
If the server runns without exceptions, this means that you must give eclipse administrative privileges.
to do that you can visit: Windows 7 - Eclipse now needs me to run as administrator or https://askubuntu.com/questions/249098/how-do-i-run-eclipse-as-sudo