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

Java Compilation with Jsr199 ignores Class-Path in manifest

    XMLWordPrintable

Details

    • b64
    • sparc
    • solaris_10
    • Verified

    Description

      When javac is invoked using jsr199, such as
       
      javax.tools.JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
       DiagnosticCollector<JavaFileObject> diagnostics =
                 new DiagnosticCollector<JavaFileObject>();
       StandardJavaFileManager stdFileManager =
                 javac.getStandardFileManager(diagnostics, null, null);
       stdFileManager.setLocation(StandardLocation.CLASS_PATH, cpath);
       etc.

      If cpath is a jar file, the jar files specified in its manifest Class-Path attribute are not included in the classpath of the Java Compilation, resulting in errors.

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            kichung Kinman Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: