-
Bug
-
Resolution: Fixed
-
P1
-
9
-
windows
-
Verified
[Windows Developer Build: 12/15/2016 (mm/dd/yyyy)]
Steps to reproduce:
1. Download the developer build of 12/15/2016 from shared location to a folder say 'jdkdeveloperbuild' and set JAVA_HOME='jdkdeveloperbuild' and set PATH=%JAVA_HOME%\bin;%PATH%
2. check java version by executing "java -version" at command line.
3. check java home by executing echo %JAVA_HOME% at command line.
4. Download ant from http://www-us.apache.org/dist//ant/binaries/apache-ant-1.9.7-bin.zip and extract to a folder 'antlatest' and set ANT_HOME='antlatest' and set PATH=%ANT_HOME%;%PATH%
5. Download attached simple normal jar 'com.greetings.jar' to a folder 'jars'
6. execute following command through command line bundling for NormalJar to produce extension (.exe) output.
CLI + NormalJar + EXE
javapackager -deploy -srcdir jars -Bclasspath=com.greetings.jar -BmainJar=com.greetings.jar -outdir bundles -native exe -appclass com.greetings.App1 -verbose
Running [C:\Users\gtee\Desktop\ramesh\dec16\bin\java.exe, -version]
Running [C:\Program Files\Inno Setup 5\iscc.exe, /?]
Detected [C:\Program Files\Inno Setup 5\iscc.exe] version [5]
At least one type of shortcut is required. Enabling menu shortcut.
"Adding modules: [] to runtime image."
Exception: jdk.tools.jlink.plugin.PluginException: java.lang.IllegalArgumentException: No modules to add
Config files are saved to C:\Users\gtee\AppData\Local\Temp\fxbundler16904370514664188650\windows. Use them to customize package.
Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "EXE Installer" (exe) failed to produce a bundle.
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:373)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:494)
7. similarly execute ant file through command "ant -f ant_build.xml" at command line for NormalJar
8. Issue is even reproducable even when executed through JAVA_API execution.
Steps to reproduce:
1. Download the developer build of 12/15/2016 from shared location to a folder say 'jdkdeveloperbuild' and set JAVA_HOME='jdkdeveloperbuild' and set PATH=%JAVA_HOME%\bin;%PATH%
2. check java version by executing "java -version" at command line.
3. check java home by executing echo %JAVA_HOME% at command line.
4. Download ant from http://www-us.apache.org/dist//ant/binaries/apache-ant-1.9.7-bin.zip and extract to a folder 'antlatest' and set ANT_HOME='antlatest' and set PATH=%ANT_HOME%;%PATH%
5. Download attached simple normal jar 'com.greetings.jar' to a folder 'jars'
6. execute following command through command line bundling for NormalJar to produce extension (.exe) output.
CLI + NormalJar + EXE
javapackager -deploy -srcdir jars -Bclasspath=com.greetings.jar -BmainJar=com.greetings.jar -outdir bundles -native exe -appclass com.greetings.App1 -verbose
Running [C:\Users\gtee\Desktop\ramesh\dec16\bin\java.exe, -version]
Running [C:\Program Files\Inno Setup 5\iscc.exe, /?]
Detected [C:\Program Files\Inno Setup 5\iscc.exe] version [5]
At least one type of shortcut is required. Enabling menu shortcut.
"Adding modules: [] to runtime image."
Exception: jdk.tools.jlink.plugin.PluginException: java.lang.IllegalArgumentException: No modules to add
Config files are saved to C:\Users\gtee\AppData\Local\Temp\fxbundler16904370514664188650\windows. Use them to customize package.
Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Bundler "EXE Installer" (exe) failed to produce a bundle.
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateNativeBundles(PackagerLib.java:373)
at jdk.packager/com.sun.javafx.tools.packager.PackagerLib.generateDeploymentPackages(PackagerLib.java:348)
at jdk.packager/com.sun.javafx.tools.packager.Main.main(Main.java:494)
7. similarly execute ant file through command "ant -f ant_build.xml" at command line for NormalJar
8. Issue is even reproducable even when executed through JAVA_API execution.