Ok, so I'm new to JavaFX and am trying to understand. I use VSCode as my preferred software. I had this working literally yesterday but now it doesn't work again and I'm once again at a complete loss. I keep tripping this error, and I do not understand why. I have added the vmArgs and loaded the Jars correctly:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Current File",
"request": "launch",
"mainClass": "${file}"
},
{
"type": "java",
"name": "Launch characterSheet",
"request": "launch",
"mainClass": "characterSheet",
"vmArgs": "-module-path E:/Documents/School/2021/04 - Java/javafx-sdk-16/lib -add-modules javafx.controls,javafx.fxml",
"projectName": "FinalProject_6830cf84"
}
]
}
I straight up feel like I'm going insane trying to figure this out. It keeps flickering between the following errors: "Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit." and "Error: JavaFX runtime components are missing, and are required to run this application".
I have done the following:
- Loaded the JARS into the extended library.
- Did the "vmargs" bit in launch.json.
- Added _JAVA_OPTIONS: -Xmx512M to limit memory.
I seriously don't have the time or energy for this, it took me like 15 hours to figure this out the first time... I just want to work on my final.