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

Javapackager simple test failing to launch in build 138

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Not an Issue
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: deploy
    • Labels:
    • Environment:

      java -version
      java version "9-ea"
      Java(TM) SE Runtime Environment (build 9-ea+138)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+138, mixed mode)

      Description

      please find the attachment for normal jar (com.greetings.jar)

      steps to reproduce
      1. execute the following command at command line.
      javapackager -deploy -verbose -outdir D:\TEMP\testBundlerWorkDir1060412094374121155\bundles -outfile test -native exe -name NormalJarSimpleTestExe -appclass com.greetings.App1 -Bclasspath="C:\Users\rbgangad.ORADEV\Desktop\rough\temp\jars" -BmainJar=com.greetings.jar -srcdir "C:\Users\rbgangad.ORADEV\Desktop\rough\temp\jars" -srcfiles com.greetings.jar

      2. After Creation of bundlle install bundle into windows operating system.
      3. Double Click on Exe file "C:\Program Files\NormalJarSimpleTest\NormalJarSimpleTest.exe" it won't launch.
      4. please find the attachment for configuration file created (NormalJarSimpleTest.cfg)
      5. please check this line in config file NormalJarSimpleTest.cfg "app.classpath=C;\Users\rbgangad.ORADEV\Desktop\rough\temp\jars"
      observe there is semi-colon(;) after letter C i.e. instead of C: it is C;
      but i changed and ran again but it is of no use.
      6.
      This is the log i got after executing through eclipse after modifying semi-colon to colon
      <LOG>
      Sep 30, 2016 6:40:18 PM com.oracle.appbundlers.utils.Utils runCommand
      INFO: Running command: [C:\Program Files\NormalJarSimpleTest\NormalJarSimpleTest.exe]
      [STDERR]: Error: Could not find or load main class com.greetings.App1
      Sep 30, 2016 6:40:19 PM com.oracle.appbundlers.utils.Utils runCommand
      INFO: Command "C:\Program Files\NormalJarSimpleTest\NormalJarSimpleTest.exe"... finished with exit code "1"
      </LOG>

        Attachments

        1. NormalJarSimpleTest.cfg
          0.4 kB
          Ramesh Gangadhar

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: