I need an executable jar for my program. A part of the program contains the Gate entity extraction tool. Here is the part of the code:
ClassLoader classLoader = getClass().getClassLoader();
File file = new File(classLoader.getResource("annie.gapp").getFile());
// CorpusController application = (CorpusController) PersistenceManager.loadObjectFromFile(
//new File("annie.gapp"));
CorpusController application = (CorpusController) PersistenceManager.loadObjectFromFile(
file);
In eclipse everything is working, but if I export it as executable jar file it does not find the annie.gapp file, and I don’t know how to make it work (I have already looked here on Stackoverflow)