cancel
Showing results for 
Search instead for 
Did you mean: 

Activation error - Perhaps JAVA_HOME does not point to the JDK

Former Member
0 Kudos

Hi all,

After compiling and building my application locally I checked in the activity but activation failed with the following log:

Perhaps JAVA_HOME does not point to the JDK

at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)

at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)

at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)

at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)

at org.apache.tools.ant.Task.perform(Task.java:364)

at org.apache.tools.ant.Target.execute(Target.java:341)

at org.apache.tools.ant.Target.performTasks(Target.java:369)

at org.apache.tools.ant.Project.executeTarget(Project.java:1214)

at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:112)

at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:61)

at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:218)

at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:195)

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:347)

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:58)

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

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

at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:727)

at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:503)

at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:442)

at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:314)

at com.sap.tc.buildcontroller.CBSBuildController.exec(CBSBuildController.java:252)

at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:207)

at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:168)

This happen suddenly since build was successfull till last friday, so we're sure that something changed in server configuration but we don't know what... now we need to make the server works again!

thanks for any help.

Stefano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Check the jdk versions in SDM and your machine.

Make sure the JAVA_HOME environment variable is set to correct jdk version which is used by sdm.

Where to check the JDK version in sdm:

You can check which jdk is being used from the following file: /usr/sap/<SID>/<INSTANCE>/SDM/program/config/sdm_jstartup.properties

under value of property "sdm.JavaPath"

Go to your system desktop and select mycomputer->rightclick and select properties ->

Advanced ->environment variables ->System Variables check the variable JAVA_HOME=c:\jdk1.6

Both jdk versions should be same.Then only sdm will deploy the appl properly.

Regards,

Lavanya.G

Former Member
0 Kudos

Hi,

java_home settings are the same in both locations and they point to the right directory.

Anyway I don't think SDM properties will affect building of component by CBS... isnt't it?

What else should I check?

Thanks,

Stefano

p330068
Active Contributor
0 Kudos

Hi Stefano.

You need to update the JAVA_HOME enviromental variable in where NWDS installed.

Once you update JAVA_HOME system enviromental variable in my computer (My computer > Properties >> Advance >> Startup and Recovery >> Enviromental Variable >> System Variables >> Add new JAVA_HOME parameter with path for installed Java JDK)

Then please check the NWDS >> Windows >> Preference >> Java >> Classpath Variable >> JRE_LIB and JRE_SRC are pointing to rt.jar and src.zip respectively.

Hope it will helps

Regards

Arun

Former Member
0 Kudos

Solved, the missing parameter was on VisualAdmin CBS-->JDK_HOME_PATHS and BUILD_TOOL_JDK_HOME as stated here:

http://help.sap.com/saphelp_nw04/helpdata/en/b5/7a5e4088dc0272e10000000a155106/frameset.htm

we don't know how we miss these parameters... anyway now it works...

Thanks to all

Stefano

Answers (0)