Java 9 actively solves gtk gui problems in Linux

Source: Internet
Author: User

Java 9 actively solves gtk gui problems in Linux

Displays the Oracle Java icon in the browser window.

Combining Java with the latest version of the Toolkit can avoid faults caused by conflict of multiple GTK versions.

Oracle is planning to include the GTK 3 GUI toolkit in Java 9 based on the Linux system. This will ensure that the current Java version is combined with the latest version of the Toolkit, so as to avoid application Faults due to conflict of multiple GTK versions.

According to a Java enhancement proposal released by the openjdk.net website, this initiative aims to support GTK (GIMP Toolkit) 2 by default and to use GTK 3 if system attributes are specified. Various Java graphics applications based on JavaFX, Swing, or AWT (Advanced container Toolkit) will be included in this recommendation plan, existing applications can run on Linux without modifying GTK 2 or 3.

This proposal has been sent to members in the openjfx-dev email list by Mark Reinhold, chief architect of the Oracle Java platform department. Java 9 is expected to be officially released in March 2017.

"A large number of Java software packages are currently using GTK, including AWT/Swing, JavaFX, and SWT. SWT has been migrated to GTK 3, but it still contains a system attribute that can be used to force it to use earlier versions, "stated in the proposal. "This method of mixing different GTK versions in the software package may cause application faults ."

This issue also affects various applications that use the Eclipse development platform. This proposal also states that although GTK 2 and 3 are currently available for most Linux distributions by default, some release schemes have not yet included them.

GTK + is also affected. This cross-platform toolkit exists as a functional component and API and is released as free software through the GNU project. It is included in a variety of common projects, from the Apache OpenOffice office software suite to the Inkscape Vector Graphics Editor and then to the PyShare Image Upload tool.

According to this Java proposal, the alternative to GTK 2 and 3 is to adjust Java graphics to ensure that it only supports GTK 3, which greatly reduces the need for porting and testing. However, this solution may cause a large number of bugs that cannot be detected through tests, which means that we need to invest extra energy to check the AWT appearance and usage experience, and require porting one or both of JavaFX/Swing. This kind of porting usually requires a lot of coordination between AWT and Swing.

However, a former Java manager who once worked for Sun Microssytems questioned the improved effects brought to Java. "Java-based desktop applications on Linux are rare, so I am not sure how large the market it is facing is, "Arun Gupta, former Sun's Java EE team member and current vice president of Couchbase's developer promotion, stressed.

Original article title: Java 9 to address gtk gui pains on Linux

Bkjia translation. if the site is reprinted, indicate the original translator and the source is bkjia.com]

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.