Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5442

Adding folder of Jar files to classpath has no effect.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 8.2, 9.0, 12.0
    • None
    • java - Classpath
    • None
    • Windows 7 and Windows 10. Other platforms untested.

    Description

      In "project properties -> Libraries -> Compile" if I add a folder to the classpath rather than adding every .jar file individually the .jar files in the directory don't actually end up on the classpath.

       

      Everything looks fine in the "Project Properties" window. The folder shows up and it can be expanded to show all the contents of the folder. But in the code editor none of the dependencies are found. If I try to compile or debug it fails since the dependencies aren't found.

       

      I tried making some edits to the path in the project's "project.properties" files but didn't have any success.

       

      Additional Details:

      This occurs on "Java with Ant" projects.

       

      Dependency added as a folder:

       

      ImageJ is not found:

       

      Dependency .JAR file added individually:

      No problem:

       

      The `project.properties` file when adding a dependency folder rather than each JAR file individually looks like this:

      ```

      file.reference.Release-x64=C:\\Users\\nicke\\Documents\\git\\micro-manager\\stage\\Release
      x64
      includes=**
      jar.compress=false
      javac.classpath=\
      ${file.reference.Release-x64}

      ```

      Which seems fine to me but doesn't actually work.

      Attachments

        1. image-2021-03-21-20-44-15-587.png
          4 kB
          Nick Anthony
        2. image-2021-03-21-20-45-12-747.png
          6 kB
          Nick Anthony
        3. image-2021-03-21-20-45-46-460.png
          4 kB
          Nick Anthony
        4. image-2021-03-21-20-50-12-975.png
          7 kB
          Nick Anthony

        Activity

          People

            Unassigned Unassigned
            nickexists Nick Anthony
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: