Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Could not find or load main class QuartsToGallons

Open
#1,517 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java, vscode
Domain
devtools

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.

Description

ai-triaged question

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

Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode-java-debug

All issues in microsoft/vscode-java-debug

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.