Lucky number 13, Netbeans project 13, which is as identical as possible to Netbeans project 12, builds perfectly (well, not very well, but it does):
clean and build:
init: deps-clean: Updating property file: /home/thufir/NetBeansProjects/JavaApplication13/build/built-clean.properties Deleting directory /home/thufir/NetBeansProjects/JavaApplication13/build clean: init: deps-jar: Created dir: /home/thufir/NetBeansProjects/JavaApplication13/build Updating property file: /home/thufir/NetBeansProjects/JavaApplication13/build/built-jar.properties Created dir: /home/thufir/NetBeansProjects/JavaApplication13/build/classes Created dir: /home/thufir/NetBeansProjects/JavaApplication13/build/classes/META-INF Copying 1 file to /home/thufir/NetBeansProjects/JavaApplication13/build/classes/META-INF Created dir: /home/thufir/NetBeansProjects/JavaApplication13/build/empty Created dir: /home/thufir/NetBeansProjects/JavaApplication13/build/generated-sources/ap-source-output Compiling 2 source files to /home/thufir/NetBeansProjects/JavaApplication13/build/classes warning: Supported source version 'RELEASE_6' from annotation processor 'org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor' less than -source '1.7' Note: Creating non-static metadata factory ... Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false Note: Optional file was not found: META-INF/orm.xml continuing with generation. Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation. Note: Found Option : eclipselink.canonicalmodel.use_static_factory, with value: false Note: Optional file was not found: META-INF/orm.xml continuing with generation. Note: Optional file was not found: META-INF/eclipselink-orm.xml continuing with generation. warning: The following options were not recognized by any processor: '[eclipselink.canonicalmodel.use_static_factory]' 1 warning Copying 2 files to /home/thufir/NetBeansProjects/JavaApplication13/build/classes compile: BUILD SUCCESSFUL (total time: 6 seconds)
Two projects:
thufir@dur :~/NetBeansProjects$ thufir@dur :~/NetBeansProjects$ tree JavaApplication12 JavaApplication12 βββ build β βββ built-jar.properties β βββ classes β β βββ META-INF β β βββ persistence.xml β βββ empty β βββ generated-sources β βββ ap-source-output βββ build.xml βββ manifest.mf βββ nbproject β βββ build-impl.xml β βββ genfiles.properties β βββ private β β βββ private.properties β βββ project.properties β βββ project.xml βββ src βββ javaapplication12 β βββ Fud30Groups.java β βββ JavaApplication12.java βββ META-INF βββ persistence.xml 11 directories, 12 files thufir@dur :~/NetBeansProjects$ thufir@dur :~/NetBeansProjects$ tree JavaApplication13 JavaApplication13 βββ build β βββ built-jar.properties β βββ classes β β βββ javaapplication13 β β β βββ Fud30Groups_.class β β β βββ Fud30Groups.class β β β βββ Fud30Groups.java β β β βββ JavaApplication13.class β β β βββ JavaApplication13.java β β βββ META-INF β β βββ persistence.xml β βββ empty β βββ generated-sources β βββ ap-source-output β βββ javaapplication13 β βββ Fud30Groups_.java βββ build.xml βββ lib β βββ CopyLibs β β βββ org-netbeans-modules-java-j2seproject-copylibstask.jar β βββ eclipselink β β βββ eclipselink-2.3.0.jar β β βββ javax.persistence-2.0.jar β β βββ org.eclipse.persistence.jpa.jpql_1.0.0.jar β βββ eclipselinkmodelgen β β βββ eclipselink-jpa-modelgen-2.3.0.jar β βββ nblibraries.properties βββ manifest.mf βββ nbproject β βββ build-impl.xml β βββ genfiles.properties β βββ private β β βββ config.properties β β βββ private.properties β βββ project.properties β βββ project.xml βββ src βββ javaapplication13 β βββ Fud30Groups.java β βββ JavaApplication13.java βββ META-INF βββ persistence.xml 17 directories, 25 files thufir@dur :~/NetBeansProjects$
The difference, apparently, is that project 13 has. / lib folder, and project 12 uses an "external" JAR.
Is it possible that my Netbeans installation is corrupted or incorrect, or I have the wrong approach to project 12? I would like to do this using external JARs, as project 12 does, because various functions, such as the library manager, work better.
source share