Hi Ede,
I packaged CADExtension as an extension rather than a plugin
(http://ojwiki.soldin.de/index.php?title=How_to_create_a_jar_plugin_in_ECLIPSE)
Maybe tha'ts why resources files are not managed the same way,
I run a java 64bits-server 1.8.0_60
I'm not sure that OpenJUMP "suddenly" complains as :
WFS has thrown an NPE for a long time (just tested with 1.9.0 and 1.9.1)
and also with java7
but only in official releases !
In OpenJUMP I18N, there are two ways to initialize I18N : from a File or
from a name.
If a File is passed as the argument, I think it will look for the file
and will not find it if it is embeded in the jar.
private static I18N getInstance(final Object categoryPrefixOrPath) {
I18N instance =instances.get(categoryPrefixOrPath);
if (instance ==null) {
if (categoryPrefixOrPathinstanceof File)
instance =new I18N((File) categoryPrefixOrPath);
else instance =new I18N(categoryPrefixOrPath.toString());
instances.put(categoryPrefixOrPath, instance);
}
return instance;
}
Le 19/03/2017 à 13:15, [email protected] a écrit :
On 19.03.2017 13:05, Michaël Michaud wrote:
Hi,
I use a JRE 1.8 (but it worked before your change) and as I told you, I
included language files in the CADExtension jar file (I'm pretty sure
this is the difference between our environments).
ic, you built your own extension jar. i actually include a second project into
the classpath of OJ devel in eclipse and install it via
workbench-properties.xml into OJ.
http://ojwiki.soldin.de/index.php?title=How_to_use_a_plugin_with_a_properties_file_in_ECLIPSE
but still that doesn't explain why it suddenly complains about missing files,
that are not even supposed to be there. we never had fr_FR language files ;)
I think this is the same problem as for WFS.
agreed
We cannot suppose that language files are in separate files.
well, it shouldn't make a difference, as long as the jar/folder are provided in
the classpath.
..ede
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel