I'm using Netbeans 5.0 with java 1.5 and tomcat 5.5.17.
When I do generics in non web project, netbeans compile it perfeclty, however if I do generics in web project netbeans get me an error message "generics are not suported in source -1.4"
If I have JDK 1.5 in my java plataform manager why netbeans get me that error in web projects?
I found in project.properties inside nbproject folder a line with: javac.source = 1.4 javac.target=1.4
If I chanche 1.4 to 1.5 all works fine. Why netbeans put 1.4 in javac.target and source by default if I have jdk1.5 version?
Thanks in advance [ May 10, 2006: Message edited by: Jordi Monn� ]
Jeroen T Wenting
posted 10 years ago
probably because Tomcat by default doesn't do 1.5 features. You need to manually change some things in Tomcat to get that support (I think you at least need to replace the tools.jar with the new version, maybe do some more), and I guess the version that ships with Netbeans hasn't been so modified.