cancel
Showing results for 
Search instead for 
Did you mean: 

Application not running in SAP HANA CLOUD local runtime

Former Member
0 Kudos

Hi,

I am trying to run the hello world application through hana cloud local runtime. But am receiving the following errors while trying to start the local runtime server.

In the details in console I could get a similar error while trying to run the neo.bat file from cmd.

Can any one help?

Any suggestions will also be great.

Thanks,

Meera

Accepted Solutions (1)

Accepted Solutions (1)

former_member185231
Active Participant
0 Kudos

Please ensure that "C:\Windows\System32" is in your path.

If it is not - just add it, restart eclipse (and console) and everything shall work.

Regards,

Dobri

Former Member
0 Kudos

Hi,

Again thank you for your response.

I didn't quiet understand as in wher should i add this path to. Can you elaborate?

Thanks,

Meera

Vlado
Advisor
Advisor
0 Kudos

Hi Meera,

It should be in your system env variable PATH.

Cheers,

--Vlado

Former Member
0 Kudos

Hi Vlado,

I tried adding it as a system envt variable. Restarted my eclipse. Again showing the same error.

Thanks,

Meera

alexander_silgidjian
Active Participant
0 Kudos

Hi Meera,

Would you go to C:\Windows\system32\ and verify that there is findstr.exe there?

Then open a new command propt and type "echo %PATH%". Verify that you have C:\Windows\system32\ in the output.

Please provide the results from these checks if your issue is not resolved yet.

Kind Regards,

Alex

Vlado
Advisor
Advisor
0 Kudos

What about the console client - does it return the same error message?

Do you have findstr.exe in C:\Windows\System32?

What is the output if you type 'findstr' in a new command prompt window?

Former Member
0 Kudos

Hi Alex,

I have findstr.exe in System 32. But when I echo the path I could not find this.

Your thoughts please.

Thanks,

Meera

alexander_silgidjian
Active Participant
0 Kudos

Hi Meera,

Please add ";C:\Windows\system32\" at the end of your PATH.

Here is how to do this: http://www.computerhope.com/issues/ch000549.htm

Then in a new console try "neo.bat -h" - the issue should be gone.

Kind Regards,

Alex

Former Member
0 Kudos

Hi Alex,

Thanks for your suggestion.

It did work for the resolution of error in console client. But still the error persists with the application. while trying to start the HANACLOUD local runtime, am receiving the same error.

Thanks,

Meera

bernd_hofmann
Active Participant
0 Kudos

Hi Meera,

Did you restart Eclipse?

Regards,

Bernd

Former Member
0 Kudos

Hi Bernd,

Appreciate your response. I tried that as well.

Thanks,

Meera

Former Member
0 Kudos

Hi Bernd,

Appreciate your response. I tried that as well.

Thanks,

Meera

bernd_hofmann
Active Participant
0 Kudos

Hi Meera,

Please do the following: open a cmd prompt at the location where you installed Eclipse in (the directory where eclipse.exe is located). Just out of paranoia enter path and make sure

";C:\Windows\system32\" is contained somewhere in the output. Then enter eclipse to start eclipse.

Regards,

Bernd

Former Member
0 Kudos

Hi Bernd,

I tried that and am recieving the following error

java version "1.7.0_25"

Java(TM) SE Runtime Environment (build 1.7.0_25-b17)

Java HotSpot(TM) Client VM (build 23.25-b01, mixed mode, sharing)

D:\OPEN SAP\Servers\SAP HANA Cloud local runtime-config>"C:\Program Files\Java\jdk1.7.0_25\bin\java" -server -javaagent:"D:\OPENSA~1\Servers\SAPHAN~1\lib\openejb-javaagent_4.5.2.jar"  -XX:ErrorFile="D:\OPENSA~1\Servers\SAPHAN~1\log\error.log" -XX:HeapDumpPath="D:\OPENSA~1\Servers\SAPHAN~1\log\heap_dump.hprof" "-XX:+HeapDumpOnOutOfMemoryError" "-XX:+DisableExplicitGC" "-Xms512m" "-Xmx1024m" "-XX:PermSize=256M" "-XX:MaxPermSize=256M" "-Dcom.sun.management.jmxremote.port=1717" "-Dcom.sun.management.jmxremote.authenticate=false" "-Dcom.sun.management.jmxremote.ssl=false" "-Dosgi.requiredJavaVersion=1.6" "-DuseNaming=osgi" "-Dosgi.install.area=." "-Djava.io.tmpdir=./work/tmp" "-Djava.endorsed.dirs=lib/endorsed" "-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInstallation=false" "-Dcom.sap.core.process=ljs_node" "-Declipse.ignoreApp=true" "-Dosgi.noShutdown=true" "-Dosgi.framework.activeThreadType=normal" "-Dosgi.embedded.cleanupOnSave=true" "-Dosgi.usesLimit=30" "-Djava.awt.headless=true" "-Djava.rmi.server.hostname=127.0.0.1" -classpath "D:\OPENSA~1\Servers\SAPHAN~1\lib\openejb-javaagent_4.5.2.jar;D:\OPENSA~1\Servers\SAPHAN~1\lib\org.eclipse.virgo.nano.authentication_3.6.2.RELEASE.jar;D:\OPENSA~1\Servers\SAPHAN~1\lib\org.eclipse.virgo.nano.shutdown_3.6.2.RELEASE.jar;D:\OPENSA~1\Servers\SAPHAN~1\lib\org.eclipse.virgo.util.env_3.6.2.RELEASE.jar;D:\OPENSA~1\Servers\SAPHAN~1\plugins\org.eclipse.equinox.launcher_1.3.0.v20120308-1358.jar"  org.eclipse.equinox.launcher.Main  -console -dev "file:D:/OPEN SAP/Servers/SAP HANA Cloud local runtime-config/configuration/dev.properties"

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Error occurred during initialization of VM

Could not reserve enough space for object heap

Thanks,

Meera

bernd_hofmann
Active Participant
0 Kudos

Hi Meera,

the memory settings of your Eclipse installation are too high. Also it seems you are using an older version of Eclipse. I'd suggest you install a new Kepler version of Eclipse. Please make sure you follow all steps on https://help.hana.ondemand.com/help/frameset.htm?761374e5711e1014839a8273b0e91070.html. Please make sure you select the "Eclipse IDE for Java EE Developers".

Afterwards, please continue with the following steps as described in the Online Help

  • Installing SAP Development Tools for Eclipse (take care to also use the URL for kepler (https://tools.hana.ondemand.com/kepler)!
  • Setting Up the SDK Location and Landscape Host
  • Setting Up the Runtime Environment

Best Regards,

Bernd

former_member185231
Active Participant
0 Kudos

The error seem clear to me:

"Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Error occurred during initialization of VM

Could not reserve enough space for object heap"

You have 2 options:

1. To free up some memory by closing unused applications in Windows.

2. To make heap size of your local server smaller - but keep in mind that you do not want to make it smaller than 500 MB. to do so ensure that server is stopped and follow the steps:

2.1. Open server editor by double click on your local server in Servers view.

2.2. Click on "Open launch configuration" link

2.3. Go to "Arguments" tab

2.4. Replace " -Xmx1024m" with  "-Xmx512m" inside VM arguments field.

2.5. Click OK

Then try to start the server.

Regards,

Dobri

Former Member
0 Kudos

Hi Bernd,

I had an older version. But I have deleted it. All the rest of the steps I had followed without mistake and now installed Java EE Eclipse Kepler in my machine. Still not working.

Thanks,

Meera

Former Member
0 Kudos

Hey Dobri,

You are a saviour. It seems I have to club both things.

I have to start eclipse through cmd after typing path as per Bernds suggestion

And then start the local run time.

If I directly start Eclipse am getting the same "findstr" error.

Wonder why it happens??

Thanks a lot,

Meera

bernd_hofmann
Active Participant
0 Kudos

With "directly" starting Eclipse I assume you use a shortcut that still keeps the too high memory settings. Easiest way is to delete this shortcut and create a new one.

-Bernd

Answers (1)

Answers (1)

Former Member
0 Kudos

Works great, thanks for solving the problem