Error: Generics not supported in -source 1.4, try using -source 1.5
843810Jul 13 2005 — edited Feb 25 2008I'm using the NetBeans 4.1 IDE, and I have both JDK 1.5 and 1.4.2 installed on my computer (Mac OS X). Both JDKs are registered in the Java Platform Manager (JDK 1.4.2 is default). I have specified JDK 1.5 to be the library to use for my project (under the Libraries section in the Projects menu).
I have the feeling however, that the IDE is using the 1.4 version of javac to parse the code in the IDE (I get the red underline that indicates the error in the subject) and when I try to compile. I have no idea where to find the option "-source 1.4" though, so that I can change it to 1.5
I tried to change the JDK source in my netbeans.conf file using the line:
netbeans_jdkhome="/System/Library/Frameworks/JavaVM.framework/[more here]/1.5.0/"
but doing so causes NetBeans to fail to launch without giving a reason why it failed.
Does anyone have an idea on how to fix this?
Thank you,
Eric