Skip to content

Linter reports "Package does not exist" error even though code compiles and runs.Β #317

@Arebusf21

Description

@Arebusf21

Hi:
I get a "Package does not exist" error when compiling and running my App.
Even though the code compiles and runs ok, this is still an issue worth looking into as the extension is pretty useless
with your code littered with error messages!

It's a very simple app written to test the extension.
I still get the error even when I copy the library to the working folder.

I have noticed that the error messages are a result of background scanning of code by netBeans? nbjrt...

Environment:
Windows 10.
VSCode: 1.95.0
Oracle Java Extension: 23.0.0
I have set the run configuration environment variable: CLASSPATH to point to my .jar file. the compiler can find it ok.
settings.json file:
{
"jdk.project.jdkhome": "f:\program files\java\jdk-17",
"jdk.verbose": true,
"jdk.runConfig.env": "CLASSPATH=e:\dev\java\lib\*"
}

here is my source:
HelloWorld.zip

Error Messages reported by the Linter:
Messages.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions