This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Author

Netbeans 5.0 - No generics supported

Jordi Monn�
Greenhorn

Joined: Feb 28, 2006
Posts: 21
Hi!

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
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.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans 5.0 - No generics supported
 
Similar Threads
Generics Questions
Generics error
Generics
generics
generics