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

Can not add additional classpath

Open
#1,426 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the launch.json configuration and the generated Java launch command, especially how the classPaths entries become the temporary -cp JAR. Reproduce the launch using the listed WSL, JDK, VS Code, and extension versions, then verify that the customized target/classes path is included in the effective classpath.

Written by the indexing model from the issue text.

Description

ai-triaged question

[provide a description of the issue]

Environment
  • Operating System: wsl (Arch)
  • JDK version: 1.8
  • Visual Studio Code version: 1.85.1
  • Java extension version: v1.25.1
  • Java Debugger extension version: v0.55.0
Steps To Reproduce
  1. my launch.json
    {
    "type": "java",
    "name": "Application",
    "request": "launch",
    "mainClass": "Application",
    "projectName": "roc-domestic-web",
    "shortenCommandLine": "auto",
    "classPaths": [
    "$Auto",
    "~/workspace/domestic-shopping/roc-domestic-common/target/classes/",
    ],
    }

  2. launch command line
    /usr/bin/env /usr/lib/jvm/java-8-openjdk/jre/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:41833 -cp /tmp/cp_aiaqxn8lxgly17gkhnct4os82.jar Application

Current Result

classpath can't have the classpath that I added

Expected Result

can append my customized classpath

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.