LSOpenURLsWithRole() failed for the application with error -10810. javaFX file

Multi tool use
Multi tool use


LSOpenURLsWithRole() failed for the application with error -10810. javaFX file



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.


LSOpenURLsWithRole()



I have tried to open .jar on mac and on windows 10 - doesn't work anywhere.


.jar



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.


.jar



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);





does "images/Print.png" exists in your jar file?
– guleryuz
Jul 1 at 4:56





@guleryuz yes it does. I have tried to make a new project with "hello world" frame , add all my images into and compile to jar. It dropped again with same error. then i have tried to delete images one-by-one and got the next situation: with one of images, added via "Image Print=new Image( );" jar file doesn't work. With other ones it worked and i still get compiled "hello world" frame. Then i have tried to just delete this image everywhere in code on my main project and compile, but it still doesn't work. inside the environment it keep works and i do see all the images during program work
– imprezoful
Jul 1 at 6:11






possibly the issue is IntelIJ, see stackoverflow.com/questions/19594627/… and stackoverflow.com/questions/20325308/…
– fabian
Jul 1 at 7:22





Problem is solved. There was 2 problems: 1) is .gif - dunno why, but into Intellij idea they worked, outside - aren't. 2) problem was into image names. Intellij idea wasn't sensitive to the register of characters, other way .jar files crashed cause of they couldn't find images.
– imprezoful
Jul 1 at 13:47









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

O8y,60VLxc8PB56hFrzc
XyLXp6k YztCDLC

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

Audio Livestreaming with Python & Flask