-
Bug
-
Resolution: Fixed
-
P3
-
9
-
1. Download 147 windows jdk build from https://java.se.oracle.com/artifactory/re-release-local/jdk/9/147/bundles/windows-x64/jdk-9-ea+147_windows-x64_bin.tar.gz to local system folder say jdk9_folder, set JAVA_HOME to jdk9_folder and set PATH=%JAVA_HOME%\bin;%PATH%
2. Download latest ant build from http://www-eu.apache.org/dist//ant/binaries/apache-ant-1.9.7-bin.zip to local system folder say ant_folder, extract to a folder and set ANT_HOME to ant_folder.
3. set PATH=%ANT_HOME%\bin;%PATH%1. Download 147 windows jdk build from https://java.se.oracle.com/artifactory/re-release-local/jdk/9/147/bundles/windows-x64/jdk-9-ea+147_windows-x64_bin.tar.gz to local system folder say jdk9_folder, set JAVA_HOME to jdk9_folder and set PATH=%JAVA_HOME%\bin;%PATH% 2. Download latest ant build from http://www-eu.apache.org/dist//ant/binaries/apache-ant-1.9.7-bin.zip to local system folder say ant_folder, extract to a folder and set ANT_HOME to ant_folder. 3. set PATH=%ANT_HOME%\bin;%PATH%
-
linux, windows
Steps to reproduce.
1. Download the attached "strip_native_commands_bug.xml" to your local system.
2. Download the attached "com.greetings.jar" to "jars" folder in local system.
3. modify the following contents in "strip_native_commands_bug.xml"
a. <taskdef classpath="D:\Downloads\jdk-9..." ==> pointing to "%JAVA_HOME%\lib\ant-javafx.jar"
b. <fx:resources>
<fx:fileset dir="jars" ===> pointing to jars folder
4. execute the file "ant -f strip_native_commands_bug.xml" at command line.
5. After javapackager execution find executable "CheckExecutablesAvailableTest_ANT_NormalJar_exe.exe" in "outdir" folder
6. Double click on "CheckExecutablesAvailableTest_ANT_NormalJar_exe.exe" and install executable in system.
7. Navigate to the folder where application is installed i.e.
%LOCALAPPDATA%\CheckExecutablesAvailableTest_ANT_NormalJar_exe\runtime\bin
8. check whether executables are available in bin folder say (java.exe, javap.exe etc).
NOTE: Issue is reproducable even in Oracle linux 7.0 also.
ACTUAL OUTPUT
Executables are not available in bin folder.
EXPECTED OUTPUT
Executables should be available in bin folder.
1. Download the attached "strip_native_commands_bug.xml" to your local system.
2. Download the attached "com.greetings.jar" to "jars" folder in local system.
3. modify the following contents in "strip_native_commands_bug.xml"
a. <taskdef classpath="D:\Downloads\jdk-9..." ==> pointing to "%JAVA_HOME%\lib\ant-javafx.jar"
b. <fx:resources>
<fx:fileset dir="jars" ===> pointing to jars folder
4. execute the file "ant -f strip_native_commands_bug.xml" at command line.
5. After javapackager execution find executable "CheckExecutablesAvailableTest_ANT_NormalJar_exe.exe" in "outdir" folder
6. Double click on "CheckExecutablesAvailableTest_ANT_NormalJar_exe.exe" and install executable in system.
7. Navigate to the folder where application is installed i.e.
%LOCALAPPDATA%\CheckExecutablesAvailableTest_ANT_NormalJar_exe\runtime\bin
8. check whether executables are available in bin folder say (java.exe, javap.exe etc).
NOTE: Issue is reproducable even in Oracle linux 7.0 also.
ACTUAL OUTPUT
Executables are not available in bin folder.
EXPECTED OUTPUT
Executables should be available in bin folder.