I have a problem with running simple JavaFX application. I'm using native packager to build exe. I want to run my application from windows file context menu, but when I try to run application with params:
> JavaFXApplication1.exe ąęć
and i'm getting 2 errors:
When i run application as jar file:
> java -jar JavaFXApplication1.jar ąęć
Application started with success and it's working fine.
Also, when I run application from this command:
> JavaFXApplication1.exe aec
everything is ok and application's working fine.
Example application code:
package test;
import javafx.application.Application;
import javafx.stage.Stage;
public class Test extends Application {
@Override
public void start(Stage primaryStage) {
System.out.println("Started");
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Args count: " + args.length);
launch(args);
}
}
Ignore, that application doesn't close.
I think that it's exactly the same problem as described here: https://bugs.openjdk.java.net/browse/JDK-8133034
Did somebody resolve this? Or is there someone, who knows a workaround of this problem? I tried java versions from 1.8.40 up to 1.8.72, but it failed on each JVM. It's also not a enviroment problem, because i've tested it on 2 different machines (and also operating systems).
I would appreciate any help.