I'm trying run package org.testfx in my JavaFX application, but i'm a facing error "JavaFX.graphics is not accessible". So I'm trying put vmArgs in VsCode tests to exports javafx.graphics, but not sucessfuly, one help?
My Code:
"java.test.config":
{
"name": "testConfig",
"workingDirectory": "${workspaceFolder}",
"vmArgs": ["--add-exports javafx.graphics/com.sun.javafx.application=ALL-UNNAMED"]
}
Well... I resolved the problem, but not the way I expected.
I removed the module-info.java to have no problem with access modules, apparently have just this option, so I have other problem, but nothing that interrupts my application.
the problem: WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @4f10c7de'
.
I resolved this with put vmArgs in launch.json on vscode:
"--module-path \"location-javafx\\lib\" --add-modules javafx.controls,javafx.graphics,javafx.fxml"
.
To persons who have this problem, if that way don't working for you, try these links:
If anyone can find another answer, please share with me, please.