on 10-10-2011 10:42 AM
Hello Community!
I am developing a new project in the NWDS / NWDI by [this tutorial.[http://help.sap.com/saphelp_nw70/helpdata/en/44/0d18d725301a78e10000000a1553f6/frameset.htm].
When I am in the Java Perspective and in the Java DC Explorer and want to build my DC (Right Click -> Development Component -> Build...), II always get this error prompt:
- I have tried out many different versions of the JDK, but nothing works.
- I have also done [this step|http://www.drftpd.org/forums/viewtopic.php?f=5&t=2978]
Can you help me?
10.10.2011 11:31:22 /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: test/tax/calc: Build failed for vwg.audi.in/test/tax/calc(vwg.audi.in_APPLICATION_1) in variant "default": The Build terminated with errors
------------------------------------- Build log ------------------------------------------------------
Development Component Build (2011-10-10 11:31:22)
Component name: test/tax/calc
Component vendor: vwg.audi.in
SC compartment: vwg.audi.in_APPLICATION_1
Configuration: AZB_APPLFIN_D
Location: AZB_APPLFIN_D
Source code location: http://isazbdbz:54400/dtr/ws/APPLFIN/vwg.audi.in_APPLICATION/dev/inactive/DCs/vwg.audi.in/test/tax/calc/_comp/
DC root folder: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\
DC type: Java
Host: audiinc07394527
DC Model check:
All used DCs are available locally
validating dependency to build plugin "sap.com/tc/bi/bp/javaLib"
DC model check OK
Start build plugin:
using build plugin: sap.com/tc/bi/bp/javaLib
starting build plugin from : C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\sap.com\tc\bi\bp\javaLib\_comp\gen\default\public\saplib\
Build Plugin 'JavaPlugin', Version 7.00 SP 15 (645_VAL_REL, built on 2008-02-16 00:52:15 CET, CL79160)
development component: test/tax/calc (vwg.audi.in)
software component: APPLICATION (vwg.audi.in)
location: AZB_APPLFIN_D
type: Java
build variant: default
output location: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default
generation folder: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0
plugin start time: 2011-10-10 11:31:22 GMT+01:00 (CEST)
Java VM: Java HotSpot(TM) Client VM, 10.0-b22 (Sun Microsystems Inc.)
General options:
convert *.xlf to *.properties: yes
include sources for debugging: yes
Checking path lengths for sources
Path length checks finished in 0 seconds
Preparing data context..
No 'default' JDK defined, will use running VM.
Warning: Did not find any tools.jar in C:\Programme\Java\jre1.6.0_06
Data context preparation finished in 0.031 seconds
Creating Ant build file..
Creating output file: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml
Using macro file: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\sap.com\tc\bi\bp\javaLib\_comp\gen\default\public\saplib\macros\build.vm
Build file creation finished in 0.078 seconds
Starting Ant..
Using build file: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml
Using build target: build
Using Ant version: 1.6.2
compile:
[echo] Starting Java compiler
[echo] Settings:
[echo] debug: on
[echo] optimize: off
[echo] deprecation: default
[echo] verbose: default
[echo] encoding: UTF8
[echo] source: default
[echo] target: default
[echo] source path: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\src\packages
[echo] class path: none
[echo] output dir: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0\classes
[javac] Compiling 3 source files to C:\Dokumente und Einstellungen\UO94F87\.dtc\0\t\38AAC310BC92CAB879CB0B2FFFDE0EF0\classes
Error: C:\Dokumente und Einstellungen\UO94F87\.dtc\0\DCs\vwg.audi.in\test\tax\calc\_comp\gen\default\logs\build.xml:74: 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 0.172 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 2011-10-10 11:31:22 GMT+01:00 (CEST)
Total build plugin runtime: 0.485 seconds
Build finished with ERROR
Dear sap_user_union_001 ,
please check the SapNetweaverDeveloperStudio.ini file which has a -vm parameter. This file is availble in your eclipse folder.
This has to point to a JDK. Please doublecheck it.
Despite the error message it has nothing to do with the JAVA_HOME environment variable, it is only a generic error message if javac is not found.
@John: Please, I kindly ask you to be polite and deliver valuable answers.
Answers like "google for it" are not moving forward towards the solution.
Thank you!
Best Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you are using NWDS 70X then John is right that case please proceed as he described, else if your NWDS is >= 710 please refer to my memo.
@John: Thank you!
Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
are you sure that you have specified JDK and not JRE ?
JRE has no javac executable.
I hope this helps.
Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
it is stated quite clear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.