Getting java.util.MissingResourceException on function java.util.ResourceBundle.getBundle
I recently solved a problem I had in J-Link that could be of interest to others.
I wanted to use a library as part of my J-Link program. The library is org.netbeans.swing.outline . My program uses somewhere deep down the class ETable, which has an initialization that uses a resourcebundle for localization.
Specifically it sets up a field for a sting that directly loads a resource Bundle.properties.
private String selectVisibleColumnsLabel =
java.util.ResourceBundle.getBundle("org/netbeans/swing/etable/Bundle").getString("LBL_SelectVisibleColumns");
At first this gave me an error,
java.util.MissingResourceException
because it could not find the resource.
The library itself loaded fine, as I have been repackaging my jar to include all libraries. (Not the best practice, but easier than adding many libraries to the protk.dat)
Using Creo 8.0.8.0 and Java 11.

