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

javapackager throws "No application jars found" when "-srcfiles" is omitted in CLI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • 9
    • deploy
    • java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev, mixed mode)

    • 9
    • Verified

    Description

      [Mac Developer Build: 10/04/2016]

      1. NOT WORKING SCENARIO
      try to execute following command at command line (NOTE it doesn't contains -srcfiles argument)

      javapackager -deploy -verbose -outdir outdirpkg -outfile test -native pkg -name SimpleJDK9Pkg -srcdir jars -Bclasspath=com.greetings.jar -BmainJar=com.greetings.jar -appclass com.greetings.App1

      here is the output of above command

      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: No application jars found
              at com.sun.javafx.tools.packager.DeployParams.validate(jdk.packager/DeployParams.java:501)
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:485)

      NOTE: without -srcfiles as argument to javpackager in command line is working perfectly in JDK8.

      EXPECTED OUTPUT: javapackager should bundle even if -srcfiles is ommited in command line.


      2. WORKING SCENARIO
      try to execute following command at command line (NOTE it contains -srcfiles argument)

      javapackager -deploy -verbose -outdir outdirpkg -outfile test -native pkg -name SimpleJDK9Pkg -srcdir jars -Bclasspath=com.greetings.jar -BmainJar=com.greetings.jar -appclass com.greetings.App1 -srcfiles com.greetings.jar

      This scenario is working perfectly without any issue.

      Attachments

        Issue Links

          Activity

            People

              vdrozdov Victor Drozdov (Inactive)
              rgangadhar Ramesh Gangadhar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: