cancel
Showing results for 
Search instead for 
Did you mean: 

NWDS Build Error JDK_HOME_PATH not set

bharathyp
Active Participant
0 Kudos

Hi,

I am having two problems.

1. I am getting the classic

     Error: Build stopped due to an error: No JDK_HOME_PATH defined for key 'JAVA_HOME'

This is the whole log,

Jul 24, 2014 3:12:01 PM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: ess/sg/fam: Build failed for sap.com/ess/sg/fam(sap.com_SAP_ESS_1) in variant "default": The Build terminated with errors

------------------------------------- Build log ------------------------------------------------------

Development Component Build (2014-07-24 15:11:51)

  Component name: ess/sg/fam

  Component vendor: sap.com

  SC compartment: sap.com_SAP_ESS_1

  Configuration: ND1_EHRESS_D

  Location: ND1_EHRESS_D

  Source code location: http://zq4c1:50100/dtr/ws/EHRESS/sap.com_SAP_ESS/dev/inactive/DCs/sap.com/ess/sg/fam/_comp/

  DC root folder: C:\Documents and Settings\nd1adm\.dtc\1\DCs\sap.com\ess\sg\fam\_comp\

  DC type: Web Dynpro

  Host: zq4c1

DC Model check:

   All used DCs are available locally

   validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"

   validating dependency to  public part "default" of DC "sap.com/tc/col/api"

   validating dependency to  public part "default" of DC "sap.com/tc/cmi"

   validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"

   validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"

   validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"

   validating dependency to  public part "default" of DC "sap.com/tc/logging"

   validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"

   validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"

   validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"

   validating dependency to  public part "default" of DC "sap.com/com.sap.exception"

   validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"

   validating dependency to used DC "sap.com/pcui_gp/xssfpm"

   validating dependency to used DC "sap.com/pcui_gp/xssutils"

   validating dependency to used DC "sap.com/ess/per"

   DC model check OK

Start build plugin:

   using build plugin: sap.com/tc/bi/bp/webDynpro

   starting build plugin from : C:\Documents and Settings\nd1adm\.dtc\1\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\

Build Plugin 'WebdynproPlugin', Version 7.00 SP 15 (645_VAL_REL, built on 2008-02-16 00:51:04 CET, CL79160)

   development component:  ess/sg/fam (sap.com)

      software component:  SAP_ESS (sap.com)

                location:  ND1_EHRESS_D

                    type:  Web Dynpro

           build variant:  default

         output location:  C:\Documents and Settings\nd1adm\.dtc\1\DCs\sap.com\ess\sg\fam\_comp\gen\default

       generation folder:  C:\Documents and Settings\nd1adm\.dtc\1\t\9BEBB9B83BED543CBB6BD26A34D713CE

       plugin start time:  2014-07-24 15:12:00 GMT+08:00 (SGT)

                 Java VM:  Java HotSpot(TM) Client VM, 11.0-b15 (Sun Microsystems Inc.)

General options:

  convert *.xlf to *.properties: yes

  include sources for debugging: yes

Warning: Source folder "META-INF" does not exist and will be ignored.

Checking path lengths for sources

Path length checks finished in 0.265 seconds

Preparing data context..

No public part descriptor found for component "tc/col/api" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/cmi" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/ddic/ddicruntime" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/ddic/metamodel/content" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/wd/webdynpro" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/logging" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "tc/wdp/metamodel/content" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "com.sap.aii.proxy.framework" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "com.sap.aii.util.misc" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "com.sap.exception" (vendor "sap.com"), public part "default", using legacy mode.

No public part descriptor found for component "com.sap.mw.jco" (vendor "sap.com"), public part "default", using legacy mode.

Error: com.sap.tc.buildplugin.util.BuildPluginException: No JDK_HOME_PATH defined for key 'JAVA_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:597)

  at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)

  at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:102)

  at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:76)

  at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:58)

  at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1723)

  at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:5633)

  at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction.buildDCs(DcCreateProjectAction.java:1027)

  at com.sap.ide.eclipse.component.provider.actions.dc.DcCreateProjectAction$1.execute(DcCreateProjectAction.java:299)

  at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)

  at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)

  at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)

  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 'JAVA_HOME'

Build plugin finished at 2014-07-24 15:12:01 GMT+08:00 (SGT)

Total build plugin runtime: 1 second

So what am I doing?

I am trying to do? I am trying to sync the sources. (attachment snc2.png)

I already changed/added the java home at 3 locations,

Visual administrator (attachment snc3.png)

vmparam file (attachment snc4.png)

I downloaded all the java versions are 32 bit.

But even after doing all these I am still facing the issue.

My NWDI version and details.

are ver. 7SP15

and NWDS is 7.0.12

And the NWDS when I clicked on configuration details I noticed this log and the first few lines are really fishy..

** Date: 7/24/14 4:36 PM

*** System properties:

JDK1.3.1_HOME=C:\Program Files (x86)\Java\jdk1.6.0_10

JDK1.4.2_HOME=C:\j2sdk1.4.2_17

JDK1.4_HOME=C:\Program Files (x86)\Java\jdk1.6.0_10

allUserDir=C:\Documents and Settings\All Users\Application Data

awt.toolkit=sun.awt.windows.WToolkit

Notice that JDK1.3.1_HOME=C:\Program Files (x86)\Java\jdk1.6.0_10, it is pointing to jdk1.6.0, but where to change to that? is this the issue?

Tried all possible things and solutions that I could find online but no use.

2

I have problem with the server (DTR) keep disconnecting once in a while, it says

DTR server http://<hostname>:50000 unreachable.

Socketclosed...

temporarily what i am doing is that to restart my instance from mmc and that works for a while, I believe it is the FQDN name that I have to change for the dtr, but where can I change that? and also what is the reason that it is able to connect the first few times when i restart the server but not later?


Thanks for your time.

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

just put the java_home in your environment variable.

bharathyp
Active Participant
0 Kudos

No, that is not the issue, it was already set as well. But apparently have to change the buildpath in the build variant in the CBS

junwu
Active Contributor
0 Kudos

it is a local build, right? why CBS is concerned?