I am new to GATE Embedded , i tried simple example and getting NoClassDefFoundError. First i will explain what i tried
- Donwload and Extract Gate 7.0 in D:\project\gate-7.0
- Netbean create new project --> added library gate.jar and lib folder
- Tried to execute simple java code
public static void main(String args[]) throws GateException, IOException
{
// initialise the GATE library
Out.prln("Initialising GATE...");
Gate.init();
Out.prln("...GATE initialised");
}
Run time getting error
Initialising GATE...
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at gate.Gate.<clinit>(Gate.java:83)
at gatedemo.StandaloneDemo.main(StandaloneDemo.java:84)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Logger
I think error is related to classpath.