After upgrading the latest JRE, the JavaFX applet runs abnormally runtimeexception:internal graphics not initialized yet

Source: Internet
Author: User

Background-applets cannot run after upgrading JRE

These two days Oracle has released the latest version of the JDK jfk_1.8_60. We have a customer who updated the latest version the first time, which led to his inability to run our applet (SWING+JAVAFX2) product.


Every time you encounter the environmental problems caused by upgrading the JRE, the heart should silently scold Oracle 100 times. The security settings for the jar have been enhanced since the JRE was previously upgraded, and a warning pops up when there are some JRE versions starting the applet, requiring the user to choose whether to allow or disallow. The applet is definitely an outdated technology, but I still have to maintain it.

Problem analysis and resolution

Encountered this problem can only direct Baidu, of course, Baidu is not found out. Bing, I'm too lazy to drive a VPN.

There are two related links Found:

Internal Graphics not initialized Yet:javafx

This link seems to be the same problem I encountered, but just to tell me that the code structure is unreasonable, I do not want to change what code structure now.

Automatically Update your Javapackager applications

This link will find the answer I want. Open this link, feel inside the content of a mess, ask the person seems to and I said nothing related. Then full-text search internal graphics bar.

One of them said: This is because the JavaFX runtime is not started yet, and the JavaFX control is initialized in the background, and this exception is thrown. The simplest solution is to manually start the JavaFX runtime by adding a new Jfxpanel () before initializing the JavaFX control.

Thanks bing!

------------------------------------

Welcome to my Independent blog:

Www.alanz.me


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

After upgrading the latest JRE, the JavaFX applet runs abnormally runtimeexception:internal graphics not initialized yet

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.