KNBRegistry thesaurus in keyword page doesn' work
I got an email from Kirsten:
Could you point me to more information about the KNBRegistry thesaurus?
On my windows machine, when I try to select it, I get the following error:
"parsing config file threw: java.net.MalformedURLException. And then I get
a message "Could not load selected vocabulary".
This is windows installer (RC1). But this feature works on my linux development box.
#1 Updated by Jing Tao almost 11 years ago
In both GenericTreeVocabularyPage and GenericVocabularyPage, the method initVocab will read a file. The file name was:
File.separator + vocab + ".xml";
However, it use this way to read file "this.getClass().getResourceAsStream(vocabFilePath)". This means it will read file from a jar. In windows, the File.separator will be "\". But somehow the jar file path doesn't like "\". When I change to SLASH, it works.