File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans 5.0 - No generics supported Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans 5.0 - No generics supported" Watch "Netbeans 5.0 - No generics supported" New topic

Netbeans 5.0 - No generics supported

Jordi Monn�

Joined: Feb 28, 2006
Posts: 21

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 inside nbproject folder a line with:
javac.source = 1.4

If I chanche 1.4 to 1.5 all works fine. Why netbeans put 1.4 in and source by default if I have jdk1.5 version?

Thanks in advance
[ May 10, 2006: Message edited by: Jordi Monn� ]
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
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.

I agree. Here's the link:
subject: Netbeans 5.0 - No generics supported
It's not a secret anymore!