On Thu, Jan 29, 2009 at 1:40 PM, Anuj Kumar Gupta <[email protected]> wrote:
> After removing all Errors from .java files.
> Now while running HepTag_GATEAnnotator.xml or GATEApplicationAnnotator.xml
> I am grtting below error..
>
> GATE config path does not exist or is not a directory
> ANy suggesstion...
>
This is a GATE problem. To run gate programmatically you need to set
some System properties. You can do it programmatically:
String dataPath= "./";
System.setProperty("gate.config", dataPath + "/gate.xml");
System.setProperty("gate.plugins.home", dataPath);
System.setProperty("gate.home", dataPath);
then you can call:
Gate.setSiteConfigFile(System.getProperty("gate.config"));
Gate.init();
I think it's possible to pass this variables directly from commanda
line. Ask to GATE's folks, or even better read GATE's documentation!
Regards,
Roberto
--
Roberto Franchini
http://www.celi.it
http://www.blogmeter.it
http://www.memesphere.it
Tel +39-011-6600814
jabber:[email protected] skype:ro.franchini