Learning the NetBeans Platform

Getting rid of IllegalStateException warnings

If you want to get rid of IllegalStateException of this kind:

INFO [org.netbeans.ProxyClassLoader]
java.lang.IllegalStateException: You are trying to access file: jcommon.properties from the default package. Please see http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package

Just add a new line to your project.properties:


Note that all extra parameters must be on the same line:

run.args.extra=-J-Djava.util.logging.config.file="logging.properties" -J-Dorg.netbeans.ProxyClassLoader.level=1000 --locale en:US


June 4, 2009 Posted by | NetBeans RCP | Leave a comment