I am writing an app on Intellij Idea and it works fine inside the environment, but today I've tried to build artifact and got this error:
LSOpenURLsWithRole()
failed for the application with error -10810.
I have tried to open .jar
on mac and on windows 10 - doesn't work anywhere.
By partial cutting the code I've come to the conclusion, that there is a problem with images. After that, I've deleted any strings of code, working with images and .jar
file compiled and works.
What could be wrong and how to fix it?
I didn't anything extraordinary with images, all the lines of code that work with images looks like:
Image Print=new Image("images/Print.png");
ClassIcon.setFitHeight(0.35*x);
ClassIcon.setFitWidth(0.8*y);
ClassIcon.setLayoutX(0.25d*x);
ClassIcon.setLayoutY(0.065*y);