I upgraded Netbeans 8.0.1 from 7.0.1 and my java program compiles fine if Web Launch is disabled. As soon as Web Launch is on, I get the following error:
C:\NetBeansProjects\SearchCriteriaEditor\nbproject\jnlp-impl.xml:480: unsupported element customize
in this section of the jnlp-impl.xml file:
<target name="-do-jar-jnlp-application" depends="-init-filename,-test-jnlp-type,-init-macrodef-copylibs" if="is.application+mkdist.available"> <j2seproject3:copylibs manifest="${tmp.manifest.file}"> <customize> <attribute name="Main-Class" value="${main.class}"/> </customize> </j2seproject3:copylibs> <echo>To run this application from the command line without Ant, try:</echo> <property location="${jnlp.dest.dir}/${jnlp.file}" name="jnlp.file.resolved"/> <echo>javaws "${jnlp.file.resolved}"</echo> </target>
The fix, as I understand it, is this: 'add the following to the junit custom macro definition:'
<attribute default="" name="testmethods"/> <element name="customize" optional="true"/> <customize/>
The problem is that I have no idea where it is, and I have not changed my ant file anyway ... can someone give me a little more information? I assume the fix is โโsomewhere in the jnlp-impl.xml file; I just have no idea where to put it.
Edit update: added all sections with links to "copylibs" in the jnlp-impl.xml file -
<target name="-test-jnlp-type" depends="-test-jnlp-enabled" if="is.jnlp.enabled"> <condition property="is.applet"> <equals arg1="${jnlp.descriptor}" arg2="applet" trim="true"/> </condition> <condition property="is.application"> <equals arg1="${jnlp.descriptor}" arg2="application" trim="true"/> </condition> <condition property="is.component"> <equals arg1="${jnlp.descriptor}" arg2="component" trim="true"/> </condition> <condition property="is.applet+mkdist.available"> <and> <isset property="libs.CopyLibs.classpath"/> <istrue value="${is.applet}"/> </and> </condition> <condition property="is.application+mkdist.available"> <and> <isset property="libs.CopyLibs.classpath"/> <istrue value="${is.application}"/> </and> </condition> <condition property="is.component+mkdist.available"> <and> <isset property="libs.CopyLibs.classpath"/> <istrue value="${is.component}"/> </and> </condition> </target> ...... <target name="-do-jar-jnlp-application" depends="-init-filename,-test-jnlp-type,-init-macrodef-copylibs" if="is.application+mkdist.available"> <j2seproject3:copylibs manifest="${tmp.manifest.file}"> <customize> <attribute name="Main-Class" value="${main.class}"/> </customize> </j2seproject3:copylibs> <echo>To run this application from the command line without Ant, try:</echo> <property location="${jnlp.dest.dir}/${jnlp.file}" name="jnlp.file.resolved"/> <echo>javaws "${jnlp.file.resolved}"</echo> </target> <target name="-do-jar-jnlp-component" depends="-test-jnlp-type,-init-macrodef-copylibs" if="is.component+mkdist.available"> <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> </target>
Thanks in advance.
source share