redhat-developer / redhat-developer/vscode-java
_ is not on the classpath of project _, only syntax errors are reported
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Every time I try to create a package for my java classes so I can finish my projects for school, errors like this occur:

When I finally try to run the program, I get an even more infuriating message:

It hurts me to be unable to properly test my code, even if I know I did well. It has been giving me anxiety for quite a while now, so I'm quite surprised this has slipped under the radar for so long.
-
Operating System:

-
JDK version: 15.0.2
-
Visual Studio Code version:

-
Java extension version:


Steps To Reproduce
- Create a java class with methods and everything.
- Put it in a folder with a test program.
- List the folder as a package in both programs.
- Try to use the class and it's methods in the test program. Both errors should be clearly visible by now.
Here is my code as an example of what can cause it. Try compiling either Test.java or Customer.java and it should be quite apparent.
Chapter10.zip
Current Result
A warning that constantly results in weird compiler errors
Expected Result
A working class that I can use
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先打开附加的 Chapter10.zip,并使用 JDK 15.0.2 在 VS Code 中通过 Test.java 和 Customer.java 复现该报告。检查 Java 扩展对 package 和 classpath 设置的处理方式。完成的标准是 classpath 警告得到解决,并且示例类能够按预期编译和运行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100