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"]
}
]
}
The solution was placing the args in the vmArgs section like so :
"vmArgs": "--module-path=lib/javafx-sdk-13/lib --add-modules=javafx.controls"