on 11-13-2009 6:04 AM
Hi All,
I have instatlled NWDS and creted one DC and then then i created a class inside that DC . After that I created a public part to reuse my class from other DC's but I am facing problem when I am trying to build this DC.Any help in this regard is welcome. Thank You.
Error:
*****\flexprofiles$\Desktop\*****\Documents\.dtc\0\DCs\sap.com\home\testdc3\_comp\gen\default\logs\build.xml:150: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
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:116)
at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)
Ant runtime 19.484 seconds
Ant build finished with ERRORS
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Error: Build stopped due to an error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Build plugin finished at 2009-11-13 11:17:03 GMT+05:30
Total build plugin runtime: 26.015 seconds
Build finished with ERROR
Edited by: Pratibha Rauthan on Nov 13, 2009 7:05 AM
Hi All,
Thanks for help , but problem could not be resolved .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha,
User eclipse folder inside the folder where NWDS is installed, along with the plugins folder you can see a Vm Parameters File.
The content in the Parameter file should look something like this
-DJDK1.4.2_HOME=C:\j2sdk1.4.2_12
-Xmx512m
-Xms128m
-XX:PermSize=32m
-XX:MaxPermSize=128m
Here check the name of the JDK version that you are using along with the JDK Home path.
Regards,
Tushar Sinha
Hi Pratibha,
1. Check under Window>Preference>Java>Installed JREs that the correct JRE is pointed to.
2. Set the class path of JAVA_HOME to JDK and not JRE. Then, restart your NWDS.
Regards,
Tushar SInha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha Rauthan
>JAVA_HOME should point to JDK but not the JRE
This is not the truth. IDE does not need JDK at all, only JRE. JDK is only for comfort in development
JAVA_HOME is not related to the problem. Check that list of Java->Installed JREs in Preferences of SAP IDE 7.0 points to the necessary default JRE. If it's not just add the JRE there.
In SAP IDE 7.1 additionally JRE version is specified in the Development Configuration properties. But again it must be in Installed JREs.
BR, Siarhei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha,
If the above solution doesn't work, then uninstall NWDS and JDK and then install them again.
I faced this problem a few days ago and it helped.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prathiba,
JAVA_HOME should point to JDK but not the JRE. When you are doing a build on DC it will search for Javac compiler which is not pointitng to JDK. set the class path of JAVA_HOME to JDK and restart your IDE and check it should work fine.
set the classpath of JAVA_HOME
JAVA_HOME - C:\Program Files\Java\JDK_version
Hope this helps you...
Regards,
Saleem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.