Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8093751

Bad Advice when packaging with an incorrect main jar

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u20
    • Component/s: deploy
    • Labels:
    • Environment:

      Windows 7

      Description

      Running the following build file produces an error:

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <project xmlns:fx="javafx:com.sun.javafx.tools.ant" default="fx-deploy">
          <taskdef classpath="C:\Program Files\Java\jdk1.8.0\lib\ant-javafx.jar" resource="com/sun/javafx/tools/ant/antlib.xml" uri="javafx:com.sun.javafx.tools.ant"/>
          <target name="fx-deploy">
              <fx:deploy nativeBundles="image" outdir="C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir" outfile="test" verbose="true">
                  <fx:resources>
                      <fx:fileset dir="C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir\jars" includes="Util.jar,testFxAppWithUtil.jar"/>
                  </fx:resources>
                  <fx:platform/>
                  <fx:preferences/>
                  <fx:application/>
                  <fx:info/>
                  <fx:bundleArgument arg="classpath" value="testFxAppWithUtil.jar;Util.jar"/>
                  <fx:bundleArgument arg="mainJar" value="C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir\jars\testFxAppWithUtil.jar"/>
              </fx:deploy>
          </target>
      </project>

      Bundler Windows Application Image skipped because of a configuration problem: An application class was not specified nor was one found in the jar RelativeFileSet{basedir:C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir, files:[C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir\jars\testFxAppWithUtil.jar]}
      Advice to fix: Please specify a applicationClass or ensure that the jar RelativeFileSet{basedir:C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir, files:[C:\Users\DM_ZIN~1\AppData\Local\Temp\testBundlerWorkDir\jars\testFxAppWithUtil.jar]} specifies one in the manifest.

      This message is seen when nativeBundles="msi" is specified but the bundle is nevertheless created.

        Attachments

          Activity

            People

            Assignee:
            shemnon Danno Ferrin (Inactive)
            Reporter:
            dzinkevi Dmitry Zinkevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: