vscode-java-debug
vscode-java-debug copied to clipboard
Combine classpath from all projects in workspace
Suppose you have demo.jar, which dynamically loads class Demo2, which is to be found in demo2.jar. (There are no maven dependencies between demo and demo2.)
In VSCode, it is easy to create a workspace with the code from demo and demo2, but I have not found any good way to get demo and demo2 on the same classpath when launching the application.
In theory, I could use classPaths in workspace.json/launch.json and point to demo2/target/classes + demo2's dependencies. In practice, however, that quickly gets out of hand, since you typically have many dependencies.
I have looked everywhere but haven't found any "good" solution. Is this something that is not supported?
If it isn't, maybe one could introduce another variable like "$Auto," which includes the workspace's combined classpath.
Environment
- Operating System: macosx
- JDK version: Java(TM) SE Runtime Environment (build 19.0.1+10-21)
- Visual Studio Code version: Version: 1.74.2
- Java extension version: 1.13.0
- Java Debugger extension version: v0.47.0
Please see attached zip. classpath-problem.zip
We didn't support using unmanaged folder as dependency of another unmanaged folder. Customizing classPaths in launch.json is actually the workaround you can use at the moment.