Project

General

Profile

Bug #4007

KNBRegistry thesaurus in keyword page doesn' work

Added by Jing Tao over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
morpho - general
Target version:
Start date:
04/21/2009
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
4007

Description

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.

History

#1 Updated by Jing Tao over 10 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.

#2 Updated by Jing Tao about 10 years ago

move to 1.7

#3 Updated by Redmine Admin over 6 years ago

Original Bugzilla ID was 4007

Also available in: Atom PDF