I'm trying out VS Code by moving a project I did on Eclipse to it. I had a run configuration in Eclipse for this project which had the following JVM arguments:
--module-path lib/javafx-sdk-13/lib --add-modules=javafx.controls
Of course this "lib" folder and its contents followed to the new VS Code project folder but I don't know where to put those JVM arguments in vsCode, the equivalent of the run configurations with Eclipse essentially. I tried putting them in the args section of the launch.json
file with no success.
I am using the spring boot dashboard to launch the project if that makes a difference.
Here is my launch.json
:
{
"configurations": [
{
"type": "java",
"name": "Spring Boot-BudgetApplication<budget>",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"mainClass": "com.someone.budget.BudgetApplication",
"projectName": "budget",
"args": ["--module-path","lib/javafx-sdk-13/lib","--add-modules=javafx.controls"]
}
]
}
ARG_NAME
=ARG_VALUE
I.e.: -Dhttp.proxy="myproxy.url" – Contortionist--ARG
is destinated to theJar
you run,-DargName
is anJVM
Argument. Keep in mind, your code (your jar) can access the JVM Args. – Contortionist-Dmodule-path=lib/javafx-sdk-13/lib
-Dadd-modules=javafx.controls
maybe--Dmodule-path=lib/javafx-sdk-13/lib
--Dadd-modules=javafx.controls
– Contortionist