Two minor errors

Source: Internet
Author: User

20120712 two errors occur. The first one is the error reported when Tomcat is started, and the second is a Heloworld test class.

The current situation was as follows: a relatively old project needs to be developed again. The environment is jdk1.4 and Tomcat5.0. At the beginning of deployment, I did not know the specific version of Tomcat, so Tomcat 5.5 is used. This error is reported when the server is started. Click to display the relevant page and jump to the Tomcat configuration page. At that time, my configuration was correct and the path was correct. I was wondering, where is the error? I searched the internet to find out that the JDK corresponding to Tomcat 5.5 must be 1.5 or above. If you change Tomcat to 5.0, this error will not occur.

The error "main" cannot be found, which is a very low-level error. For the newly created java project, if the compiler of the project is not set to 1.4, the exception is still displayed according to the default 1.5 in the editor. This exception does not occur after modification. This low-level mistake. I hope I will not make it again in the future!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.