-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not add additional classpath #1426
Comments
Can you replace |
no , I had tried it , absolute path is the same issue |
I know the reason , the classpath is written to MANIFEST.MF when ShortenCommandLine = 'jarmanifest', but I want to add additional classpath alone, like '-cp /tmp/cp_aiaqxn8lxgly17gkhnct4os82.jar;. xxx/', is it supported now? |
Unfortunately, this feature is not supported. When the shortenCommandLine configuration is enabled, it will generate the complete classpath into a temporary file. If you don't want it to be added to the tmp .jar, you can turn off the shortenCommandLine setting. |
If I turn off the shortenCommandLine setting, command line is to long , it can not run |
Could you please clarify why the default behavior, where the additional classpath is generated into the temporary .jar file, is not suitable for your needs? |
[provide a description of the issue]
Environment
Steps To Reproduce
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/",
],
}
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
The text was updated successfully, but these errors were encountered: