Setting OpenGamma on IntelliJ (Windows)

I managed to get OpenGamma to work from source in IntelliJ on Linux Redhat but failed on Windows. Would appreciate any help with the following error

Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I’m running on Windows 7, i7 with 10gb memory

Are you using a 32-bit JVM under Windows? That error can mean that you’re trying to allocate more heap than a 32-bit JVM can address.

What output do you get from ‘java -version’ at the command line?


32 bit JVM 1.7 ( I did try JDK8 64bit but that just completed failed), I tweaked with the config and now I am getting the following exception errors

Initializing factory 'com.opengamma.component.factory.master.DbFunctionCostsMasterComponentFactory
Using properties {classifier=central, dbConnector=::eng}
com.opengamma.OpenGammaRuntimeException: Failed to init component factory: ‘dbFunctionCosts’ with {factory=com.opengamma.component.factory.master.DbFunctionCostsMasterComponentFactory, classifier=central, dbConnector=::eng}
at com.opengamma.component.ComponentManager.initComponent(
at com.opengamma.component.ComponentManager.initComponents(
at com.opengamma.component.ComponentManager.init(
at com.opengamma.component.ComponentManager.start(
at com.opengamma.component.ComponentManager.start(
at com.opengamma.examples.simulated.ExamplesSimulatedComponentServerDev.main(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.intellij.rt.execution.application.AppMain.main(
Caused by: java.lang.IllegalArgumentException: Unknown fragment name: GetSchemaVersion
at com.opengamma.elsql.ElSqlBundle.getFragment(
at com.opengamma.elsql.ElSqlBundle.getSql(
at com.opengamma.enginedb.stats.DbFunctionCostsMaster.getSchemaVersion(
at com.opengamma.component.factory.master.DbFunctionCostsMasterComponentFactory.init(
at com.opengamma.component.ComponentManager.initFactory(
at com.opengamma.component.ComponentManager.initComponent(
… 12 more

The error is indicating that the file DbFunctionCostsMaster.elsql does not contain “@NAME(GetSchemaVersion)”. I don’t know why that would be, as I can see that line in our sourcebase. You’ll need to check the DbFunctionCostsMaster.elsql file and see why it isn’t up to date.