GateListener Needs That ANNIE plugin Be Always Loaded

(Doc ID 1550838.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Spatial - Version and later
Information in this document applies to any platform.


Trying to use the GateListener with GATE receiving error:

"C:\Program Files (x86)\Java\jdk1.6.0_35\bin\java" -classpath .;"C:\Program Files\GATE-5.0\bin\*";"C:\Program Files\GATE-5.0\lib\*" GateListener 12000

You may need first to load the plugin that contains your resource.
For example, to create a gate.creole.tokeniser.DefaultTokeniser
you need first to load the ANNIE plugin.

Go to the menu File->Manage CREOLE plugins or use the method

We tried adding to the plugin-loader statement for natural language processing immediately after the Gate.init(); statement :
Gate.getCreoleRegister().registerDirectories(new File("/home/oracle/downloads/GATE/gate-6.0-build3764-BIN/plugins/OpenNLP").toURI().toURL()); as shown in the GATE documentation/forums but this throws a compilation error
./ cannot find symbol
symbol : class File
location: class GateListener
File gateHome = gate.getGateHome();


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms