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

getCodebase and getDocumentbase return "" string although classes are packed in jar file when run as standalone application

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: fx2.0
    • Fix Version/s: None
    • Component/s: deploy
    • Labels:
    • Environment:

      b40, jre7b147,jre6u27 b09, xp sp3 x86, win7 x86

      Description

      Standalone application cannot get codebase and documentbase by Application.getHostServices().getCodeBase().

      Note: Seems latest scrum has fixed the bug. This bug is to associate test cases.

      Steps to reproduce:
      1.Download jar files from
      http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/classes/CodebaseTest.jar
      http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/classes/DocumentBaseTest.jar
      http://sqeweb.us.oracle.com/deployment2/sheldon/webCases/javafx/fxfeaturesTest/fxfeaturesTest/classes/baseUtil.jar
      2. Launch the application using command:
      java -cp CodebaseTest.jar;baseUtil.jar;C:/PROGRA~1/Oracle/JAVAFX~1.0/lib/jfxrt.jar deploy.sqe.CodebaseTest
      3. The application will print out the result of getCodebase(). If it is "" the bug is reproducible

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ngthomas Thomas Ng (Inactive)
              Reporter:
              yanqchen Sheldon Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: