java - getting GATE embedded to work with gateHome inside a JAR -


i'm trying distribute gate application standalone jar file. have gate plugins resources on classpath in project, setgatehome() requires file object, can't resource packaged inside jar.

i assumed java io sufficiently abstracted apis handle case, turns out file objects refer physical files on disk.

is there alternative way gate api? or option force jars unpack temporary folder before running?

the example in docs servlet, in case it's possible file object servlet (i think because war files unzipped servlet container).

from experience gate can suggest unpack jar resources necessary somewhere local drive.usually keep resources(annie,tokenizer,japes,gazetteers) in 1 folder , use relative paths these resources. additional option can try use: http://jenkins.gate.ac.uk/job/gate-nightly/javadoc/gate/gate.html#runinsandbox(boolean) option.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -