microsoft / microsoft/vscode-java-debug
Could not find or load main class QuartsToGallons
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 591
- Forks
- 429
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 19
Description
PS C:\Users\ZIXUAN8368\Desktop\Java\Chapter2> cd "c:\Users\ZIXUAN8368\Desktop\Java\Chapter2" ; if ($?) { javac QuartsToGallons.java } ; if ($?) { java QuartsToGallons }
Error: Could not find or load main class QuartsToGallons
Caused by: java.lang.NoClassDefFoundError: QuartsToGallons (wrong name: Chapter2/QuartsToGallons)
I am new to VS Code and i couldn't figure it out how to solve this, i will need some help
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report names QuartsToGallons.java and the javac/java commands; first reproduce the launch from the Chapter2 directory and inspect the reported Chapter2/QuartsToGallons name mismatch. Done means the class starts from the same workflow without the NoClassDefFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100