Skip to content

Package Does Not Exist Error; Project builds and Runs OK. #3832

@Arebusf21

Description

@Arebusf21

Building a simple HelloWorld app to test importing an external .JAR file
The Jar was built with an earlier version of the JDK but builds on the command line without issues.
The linter indicates that the import class "Media" does not exist even though the jar file has been referenced.
The App runs OK without any errors. Where are these errors being reported from? It looks as it's a Red Hat response.

Environment
  • Operating System: Windows 10
  • JDK version: 17.0.13
  • Visual Studio Code version: 1.94.2
  • Java extension version: 1.35.1 (Language Support for Java by Red Hat.
Steps To Reproduce

Just load the folder containing the HelloWorld.java file into VSCode and the errors show up straight away.
Run the app with or without the debugger and it runs ok.

Source, (java file):
HelloWorld.txt

Log.pdf

settings:
settings.json

Current Result

indicates that package does not exist event though it builds ok.

Expected Result

no linting errors.

Additional Information

let me know what else I can provide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions