cancel
Showing results for 
Search instead for 
Did you mean: 

Error: "No JDK_HOME_PATH defined for key 'JDK1.4.2_HOME'" when local build

former_member186148
Active Participant
0 Kudos

Hello SDN!

I want to build CRM ISA 5.0 application locally thru NWDS. This application uses Development Component technology. In the NWDI server track for this application has a build variant "default" with key "com.sap.jdk.home_path_key" and value for this key "JDK1.4.2_HOME".

When I try to build it locally I've got an error:

Error: com.sap.tc.buildplugin.util.BuildPluginException: No JDK_HOME_PATH defined for key 'JDK1.4.2_HOME'
	at com.sap.tc.buildplugin.JavaMacroContextProvider.setupJavaCompiler(JavaMacroContextProvider.java:235)
	at com.sap.tc.buildplugin.JavaMacroContextProvider.setupJavaEnvironment(JavaMacroContextProvider.java:180)
	at com.sap.tc.buildplugin.JavaMacroContextProvider.execute(JavaMacroContextProvider.java:35)
	at com.sap.tc.buildplugin.PrepareContextBuildStep.prepareTechnologySpecificData(PrepareContextBuildStep.java:187)
	at com.sap.tc.buildplugin.PrepareContextBuildStep.setupBuildFileCreatorContext(PrepareContextBuildStep.java:95)
	at com.sap.tc.buildplugin.PrepareContextBuildStep.execute(PrepareContextBuildStep.java:56)
	at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
	at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
	at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
	at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
	at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
	at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
	at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
	at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)
	at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)
	at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
	at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
	at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Error: Build stopped due to an error: No JDK_HOME_PATH defined for key 'JDK1.4.2_HOME'

I've created system environment variables JDK_HOME_PATH, JAVA_HOME and JDK1.4.2_HOME pointed to C:\j2sdk1.4.2_17. In NWDS parameter "Installed JREs" pointed to C:\j2sdk1.4.2_17. Nothing effect.

How to build this application locally?

Regards, Lev

Accepted Solutions (1)

Accepted Solutions (1)

former_member186148
Active Participant
0 Kudos

Problem solved:

0. stop NWDS

1. go to NWDS installation directory (for example, C:\Program Files\SAP\IDE\IDE70\eclipse)

2. make back up copy of file vm.parameters

3. open vm.parameters with notepad

4. add at the end of file following entry:

-DJDK1.4.2_HOME=C:\j2sdk1.4.2_17 (path to JDK)

5. run NWDS and perform build

Former Member
0 Kudos

Hi,

i did the same, as per your last comments, but still i am getting same error.

Thanks,

Siva.

ErvinSzolke
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi All,

the JDK_1.4.2_HOME must be set not as an environment variable or a VM parameter, but it must be set for the CBS service.

See the guide which -- among others -- also covers this:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7014086d-3fd9-2910-80bd-be341781...

- On 640/700 you can reach the CBS service settings from the Visual Admin.

(http://help.sap.com/saphelp_nw70/helpdata/EN/53/75b3407e73c57fe10000000a1550b0/frameset.htm)

- as of 710 you find it here:

http://<host>:<port>/nwa u2013 Configuration Management u2013 Infrastructure u2013 Java System Properties u2013 Component Build Service

(notice the SAP note: #1451364 - Modification of CBS service properties disabled in NWA

http://service.sap.com/sap/support/notes/1451364)

Some further hints:

- BUILD_TOOL_JDK_HOME = <path to highest JDK>

- JDK_HOME_PATHS = JDK1.3.1_HOME=<path of jdk131>;JDK1.4.2_HOME=<path of jdk142>;JDK1.5.0_HOME=<path of jdk150>JDK1.6.0_HOME=<path of jdk160>;default=<path of the JDK as default>

Some simple rules with examples:

- for BUILD_TOOL_JDK_HOME you simply enter the path to your JDK, e.g.: /opt/IBMJava2-amd64-142

- for JDK_HOME_PATHS you have to follow the scheme "key=value" e.g.: JDK_1.4.2_HOME=/opt/IBMJava2-amd64-142

- for BUILD_TOOL_JDK_HOME you always specify the highest JDK,

- for JDK_HOME_PATHS you list the available JDKs.

- JRE is not allowed, specify always JDK!

Best Regards,

Ervin

Answers (0)