I followed the process described in Javafx 11 with vscode-java, to set vscode with javafx. It worked for once and i was able to run that sample code OpenJFX sample code. But after that it is giving me error
Error occured during initialization of VM
java.nio.charset.IllegalCharsetNameException: UTF-8 -cp C:\Users\... ;.. ;
In the end is all jar files. How do i make it work?
Asked
Active
Viewed 237 times
1
-
you could try to clean the workspace and run again,F1->Clean->Clean the java ..... – Leo Zhu Aug 28 '19 at 07:59
-
I have tried to start with a new project too but it doesn't work. As i understand something in extensions data changes when I run a project. As of I am just working without debugger using terminal to compile and run. – Voly op Aug 28 '19 at 08:56
-
Try to create the project in the root directory ,don't use too many layers and check the file naming. Do not use unsupported characters – Leo Zhu Sep 10 '19 at 07:19
-
I just removed all vscode, javafx, extensions etc. and reinstalled all again and the sample code works now. – Voly op Sep 10 '19 at 13:33
1 Answers
0
The repo has dedicated samples for VS Code now: https://github.com/openjfx/samples/tree/master/IDE/VSCode. Maybe you can take a look at it.

Sheng Chen
- 1,012
- 4
- 18