Java Heap - Out of Memory Error

Hi I get the below error when I am trying to run a project locally. This runs fine on my colleagues computer and he faces no issues. Buildfile: C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\build_core.xml compile: [javac] Compiling 2 source files to C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\run\bin [javac] Note: C:\Users\brio.joseph\Documents\FNMAPortal-main\javasource\com\mendix\core\ uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: C:\Users\brio.joseph\Documents\FNMAPortal-main\javasource\com\mendix\core\ uses unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. build: [bnd] # addAll 'deployment/run/bnd.bnd' with , [bnd] in default pack? EWSJExamples [bnd] in default pack? a [bnd] in default pack? b [bnd] in default pack? c [bnd] in default pack? JDOMAbout [bnd] in default pack? JDOMAbout$Author [bnd] in default pack? JDOMAbout$Info BUILD FAILED C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\build_core.xml:46: The following error occurred while executing this line: C:\Users\brio.joseph\Documents\FNMAPortal-main\deployment\run\bndbuild.xml:9: java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf( at at at at aQute.bnd.osgi.EmbeddedResource.copy( at aQute.bnd.osgi.EmbeddedResource.collect( at at at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath( at aQute.bnd.osgi.Analyzer.analyze( at aQute.bnd.osgi.Builder.analyze( at aQute.bnd.osgi.Analyzer.calcManifest( at at aQute.bnd.osgi.Builder.builds( at aQute.bnd.ant.BndTask.executeBackwardCompatible( at aQute.bnd.ant.BndTask.execute( at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at at at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( Total time: 56 seconds
1 answers

That is strange if the project has the same amount of Java memory allocated on your colleague's pc. You could try increasing the memory. If it still fails there could be a weird bug in the OSGi library but then we'd need more information to reproduce this.