JSP development for the company background ~ Poor, for the sake of a plug-in, I have made a lot of eclipse software back and forth, so there are many problems with it ....
I use the "Eclipse IDE for Java EE developers" version ~ "Failed to create virtual machine"
I searched the internet and said that the allocated memory is too large. I want to change the 128 m in the ecipse. ini file to M,
After the file is imported, there are many problems. There are a lot of forks in the SRC ~ Shame ~
1. "httpservlet cannot be resolved to a type". It turns out that the javax. servlet package cannot be found in eclipse. solution:
Cause:
JDK does not include the servlet-api.jar package, which exists in Tomcat
Project name --> right-click
Property --> select
Java build path --> select
Add external jars --> select
Enter the path of the servlet-api.jar.
[Solution: http://blog.csdn.net/zhouyingge1104/article/details/7583511]
2. After eliminating many forks, the "com. jspsmart. Upload" package still has many forks ~ This is even worse. I searched a lot of blog posts on the Internet, and the solution was useless ~~~ At last I feel by myself, casually added a package, even line, wireless language, the method is the same as above, the path of the jsp-api.jar input.
There are still problems after these errors are eliminated ~
The program cannot run normally. In the end, no project is successfully imported.
Right-click the project and choose Properties"
Click "convert to..." on the right ....."
Then select the third "dynamic web module" and click the application. It is said that there is a box popped up, but I don't have it, so it's 404 ~ I finally asked for help ~ I don't know what's going on, alas ~
Then the HTML page runs normally, but the JSP file does not work. Click "run" to run it directly.
Solution:
In the eclipse directory, open idea e. ini
Add
-VM
C:/program files/Java/jdk1.6.0 _ 10/bin/javaw.exe
This is the JDK path and runs the program directly .... So many software, there are many issues with eclipse. I 've been around for a long time .....