cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to execute SAP ME Scripts?

chandrababu_katta
Participant
0 Kudos

Hi,

When trying to implement SAP ME SCRIPTS getting following error

"Java runtime errormissing!Cannot find

file"C:\Programfiles\java\jre\bin\java.exe"

please find the attached screenshot regarding this

We also set the JAVA_HOME path.

Early response would be appreciated.

Regards,

Chandrababu

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182330
Active Contributor
0 Kudos

Hi,

Have you checked the path? It doesn't look like correct to me. Likely you defined JAVA_HOME incorrectly. That's why path built by the script is incorrect:

if not exist "%JAVA_HOME%\jre\bin\java.exe" goto ERROR_MISSING_JRE

...

:ERROR_MISSING_JRE

  echo ERROR: Java Runtime missing! Cannot find file "%JAVA_HOME%\jre\bin\java.exe".

  goto :E_O_F

JAVA_HOME should reference path to JDK. Something like "c:\Program Files\Java\jdk1.7.0_60".

Regards,
KC

chandrababu_katta
Participant
0 Kudos

Hi KC,

Set the JAVA_HOME in environmental variables as follows and looks fine the home path.

Please refer once

Pleasse let me any corrections to take and also find the below image of Program files,

here i have JDK 1.8, jre7 & jre8 installed. Its causing problem to run?

Regards,

Chandrababu

former_member182330
Active Contributor
0 Kudos

I've provided an example above how it should look like. Try it. I think it should work. Also I would try it with JDK6 or 7, but 8 may also be fine.

chandrababu_katta
Participant
0 Kudos

Yes, Set exactly as you mentioned

JAVA_HOME=C:\Program Files\Java\jdk1.7.0_67

and Path=%JAVA_HOME%\jre\bin\java.exe

and try to execute MESCRIPTS, getting same error.

What is goto:E_O_F?

former_member182330
Active Contributor
0 Kudos

That was just an EXAMPLE, you should use the path to JDK that exists in your environment, not mine. I don't think you have jdk1.7.0_67 folder on your server, do you?. Thus change it to jdk1.8.0_11.

chandrababu_katta
Participant
0 Kudos

yeah i have jdk1.7.0_67, and while testing java home path its working like

in the command prompt goto any drive and test "javac" , its fine and working.

Any other ways to clear it like any uses of SAP JVM 6.1 to use SAP ME SCRIPTS?

former_member182330
Active Contributor
0 Kudos

Sorry I'm lost. Screenshot above clearly shows that there is no such folder in your system. Also relogon may be required for new env variable values come into effect.

chandrababu_katta
Participant
0 Kudos

still the same problem, i restarted server and try the same to exeecute MESCRIPTS.

former_member182330
Active Contributor
0 Kudos

How does the new error look like?

chandrababu_katta
Participant
0 Kudos

same error, nothing change.

sergiy_katerinich
Active Contributor
0 Kudos

Your original error stated that path "C:\Program Files\Java\jre\bin\java.exe" does not exist.

And you want to say that you changed JAVA_HOME to point to "C:\Program Files\Java\jdk1.7.0_67" but you still see error about "C:\Program Files\Java\jre\bin\java.exe", don't you? Could you share screen shots of the error and JAVA_HOME once again? And what is under \jdk1.7.0_67 folder?

Could you try with "Program Files (x86)"?

chandrababu_katta
Participant
0 Kudos

HI SK,

Its working now fine., restarted all the instance once again and its able to proceed.

Thanks for the updates.

Regards,

Chandrababu Katta