Getting error: Could not find or load main class DbCreateTool


#1

I am following the postgres database setup instructions https://opengamma-docs.atlassian.net/wiki/display/DOC210/Database+initialisation

Am getting the error Could not find or load main class com.opengamma.component.tool.DbCreateTool

Command = db-create-tool.bat -c classpath:dbtoolcontext/dbtoolcontext-example-postgres-fin.properties

Run from directory = C:\IBP\03_Product\projects\OG-Platform-B\projects\OG-Server\target\scripts\

There is a DbCreateTool.class in C:\IBP\03_Product\projects\OG-Platform-B\projects\OG-Component\target\classes\com\opengamma\component

Can you advise what I need to do?

Thanks


#2

Hi Greg,

This very same issue was discussed in a previous post : Could not find or load main class com.opengamma.component.tool.DbCreateTool

Hope this will help
Mo


#3

The answer for the issue that you linked tells to run the scripts from server-dir directory, but in 2.18 version of OpenGamma there is no such directory.