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

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • fx2.0
    • deploy
    • b40, jre7b147,jre6u27 b09, xp sp3 x86, win7 x86

      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

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

              Created:
              Updated:
              Resolved:
              Imported: