0

I'm attempting to connect to this API. As part of the instructions, I must add a reference, like so:

System.setProperty("wordnet.database.dir", "C:\\WordNet-3.0\\dict\\");

That's all well and good, however I would like the path to be relative. The directory is inside my project in the "Resources" folder, as shown below in NetBeans:

enter image description here

How can the path be modified?

4

1 回答 1

1

尝试这个:

System.setProperty("wordnet.database.dir", "Resources\\WordNet\\dict\\");
于 2013-04-14T09:29:20.313 回答