Finally got the CVS stuff working with NetBeans but...

Started by Erestar, July 21, 2004, 04:15:07

Previous topic - Next topic

Erestar

when I try to compile the LWJGL stuff or the SPGL stuff, I get an error and a warning on every assert:



com/shavenpuppy/jglib/tools/ResourceConverter.java [202:1] warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
                assert Resource.class.isAssignableFrom(featureClass) : featureClass.getName()+" is not a Resource";
                ^
com/shavenpuppy/jglib/tools/ResourceConverter.java [202:1] ';' expected
                assert Resource.class.isAssignableFrom(featureClass) : featureClass.getName()+" is not a Resource";


Anyone know what's up with this? I'm using blackdown JRE 1.4.1

Thanks!

Ere

Erestar

I got it... Just had to let java know it was ok to use 1.4.1 code.

In netBeans, that was under Tools->Options->Building->Compiler Types->External Compilation and the set Enable JDK 1.4 Source to true.

Doobie doobie do