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

Executables are not available in bin directory when "javapackager --strip-native-commands false" is invoked through ant for normal jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • deploy
    • 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. CheckExecutables_ANT_NormalJar_linux_app.log
          6 kB
          Ramesh Gangadhar
        2. CheckExecutables_ANT_NormalJar_Rpm.log
          8 kB
          Ramesh Gangadhar
        3. strip_native_commands_bug.xml
          1 kB
          Ramesh Gangadhar

            cbensen Chris Bensen (Inactive)
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: