Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Absolute path error #1498

@charlie-cadmv

Description

@charlie-cadmv

Environment:

  • VS Code Version:1.104.0
  • Extension Version: 0.29.2
  • JDK Type & Version: JavaSE-1.8
  • OS Type & Version:
    Windows
    Step to Reproduce:
    Open a folder containing Java code and a .classpath file.
    Ctrl+Shift+P, Java: Configure Java Runtime
    Navigate to classpath->libraries
    Click "Add Library"
    Select a .jar file using the picker
    The path to the picked jar file gets added as a relative path. Then, when you click Apply Settings, it throws an error.
    See example adding common-image-3.2.1.jar by choosing the file in a file picker and then clicking "Apply Settings":
Image

Expected Behavior:
"Add Library" button picker adds the jar with the absolute path or otherwise avoids the error.
Actual Behavior:
"Add Library" button picker adds JAR with a a relative path, and clicking "Apply Settings" throws the error Failed to update classpaths: Error: Path for IClasspathEntry must be absolute:
Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions