![]() ![]() But of course that's only viable for Maven projects. I realize that you don't want to do that, but unfortunately there's no silver bullet in the current release of NetBeans (8.2).Īn alternative approach would be to build and run using only JDK 8, but include the Animal Sniffer Maven plugin "for checking projects against the signatures of an API", to verify that your 1.6 code was not using illegal APIs. Try setting the version directly for the compiler plugin: maven-compiler-pluginAlso note that at present the default source. If you want to force the plugin using javac, you must configure the plugin option forceJavacCompilerUse. Since 3.0, the default compiler is (if you are using java 1.6) and is used to compile Java sources. Switch the Java Platform to 1.8 on the Libraries screen to run your 1.6 code under 1.8. The Compiler Plugin is used to compile the sources of your project.Set the Java Platform to JDK 1.6 on the Libraries screen, and set the Source/Binary Format to JDK 6 on the Sources screen, then build to verify that no invalid APIs are being used. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |