同样的类,如果其中包含枚举定义,则访问该类将会出现错误:NoClassDefFoundError。
虽然我的环境变量已经设置为1.5是tomcat5不支持enum吗?

解决方案 »

  1.   

    枚举类型是JDK5.0提出的,tomcat5.5可以支持,再低就只支持jdk1.4了
      

  2.   

    搜了下:http://apache.mirror.phpchina.com/tomcat/tomcat-5/v5.5.25/RELEASE-NOTES
    Tomcat 5.5 is designed to run on J2SE 5.0 and later, and requires
    configuration to run on J2SE 1.4.  Make sure to read the "RUNNING.txt" 
    file in the fulldocs downloadable file(s) if you are using J2SE 1.4.http://apache.mirror.phpchina.com/tomcat/tomcat-6/v6.0.14/RELEASE-NOTES
    Tomcat 6.0 is designed to run on JSE 5.0 and later, and requires
    configuration to run on JSE 5.0.
      

  3.   

    ...tomcat5可以支持的,俺误会了这个错误哎。