Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Java-Module-AddOpens Only Working Once....
Java-Module-AddOpens Only Working Once.... [message #1822894] Mon, 16 March 2020 13:11 Go to next message
Kyle Girard is currently offline Kyle GirardFriend
Messages: 12
Registered: March 2012
Junior Member
I'm using JavaFX and Controlsfx in a single plugin in my RCP app which was recently ported from Java 1.8 to Java 11 everything seems to work with the following exception. I'm using the controlfx grid view and when I launch the dialog that contains the view I get this::

Unable to make field private final accessible: module javafx.controls does not "opens" to unnamed module @74355746

A little bit of digg on google turned up this:

So I need to be able to add the equivalent of this:


to my some more google searching turned up the 'Java-Module-AddOpens' attribute for the MANIFEST.MF file...

Sweet! So I put this in the MANIFEST.MF file:

Java-Module-AddOpens: javafx.controls/

Launch the app, open the dialog , YAY there was much rejoicing... it was not long lived however... If I launch the app again, boom, back to the original error.

I have modify the MANIFEST.MF file every time in order for the dialog to open in my development environment ... when I build the distribution package it fails 100% of the time....

What do I have to do get the Java-Module-AddOpens attribute value to stick? Or is there a better way for me to do what I need to do?


Re: Java-Module-AddOpens Only Working Once.... [message #1822921 is a reply to message #1822894] Mon, 16 March 2020 20:05 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Well so you are running with PDE, or bnd, or maven- bnd? Not sure who is removing that from your MANIFEST.MF.
Previous Topic:option to add -parameters debug="true" debuglevel="lines,vars,source"
Next Topic:DriftFX Integration
Goto Forum:

Current Time: Mon Jul 22 16:59:54 GMT 2024

Powered by FUDForum. Page generated in 0.05608 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top