That's how I originally wrote it, but I got this:
[javac]
/home/david/erp/opentaps/hot-deploy/CatalogImport/src/org/opentaps/CatalogImport/CatalogImportServices.java:52:
cannot find symbol
[javac] symbol : constructor
GenericDispatcher(org.ofbiz.service.DispatchContext,org.ofbiz.entity.GenericDelegator)
[javac] location: class org.ofbiz.service.GenericDispatcher
[javac] GenericDispatcher dispatcher = new
GenericDispatcher(dctx, delegator);
which should work because the one of the constructor methods is:
GenericDispatcher(DispatchContext ctx, GenericDelegator delegator)
David E Jones wrote:
Taking a peek at the code this line doesn't look valid:
GenericDispatcher dispatcher = GenericDispatcher(dctx, delegator);
There needs to be a "new" before the class name or a method called in
the class in order for the line to be valid.