cancel
Showing results for 
Search instead for 
Did you mean: 

Facing Problem while building DC Locally

0 Kudos

Hi all,

When i build DC from using NWDS, i got the error "unable to find a javac compiler."

Detailed Error as below :

Feb 3, 2011 11:20:15 AM /userOut/Development Component (com.sap.ide.eclipse.component.provider.listener.DevConfListener) [Thread[ModalContext,5,main]] ERROR: createpwdsaf: Build failed for com.bat.saf/createpwdsaf(MyComponents) in variant "default": 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 log -


...

DC Model check:

[dcmake] All used DCs are available locally

Start build plugin:

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

[dcmake] starting build plugin from : D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\

Build Plugin 'WebDynproPlugin', Version 6.40 SP 16 (630_VAL_REL, built on 2006-02-13 00:17:07 CET)

development component: createpwdsaf (com.bat.saf)

software component: MyComponents (demo.sap.com)

location: local

type: Web Dynpro

build variant: default

source location: ankita@D-166231

plugin start time: 2011-02-03 11:20:05 GMT+05:30 (IST)

Java VM: Java HotSpot(TM) Client VM, 1.6.0_02-b06 (Sun Microsystems Inc.)

General options:

convert *.xlf to *.properties: yes

include sources for debugging: yes

Plugin initialized in 0.109 seconds

Warning: No runtime information available for development component type External Library (sap.com), cannot validate runtime dependency.

Preparing data context..

No 'default' JDK defined, will use running VM.

Warning: Did not find any tools.jar in C:\Program Files\Java\jre1.6.0_02

Data context prepared in 0.031 seconds

Executing macro file..

Using macro file: D:\eclipse\plugins\com.sap.tc.ap\comp\SAP_BUILDT\DCs\sap.com\tc\bi\bp\webDynpro\_comp\gen\default\public\webDynpro\macros\build.vm

....

Using build target: build

Generation folder: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196

Using Ant version: 1.5.4

prepare:

[mkdir] Created dir: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\gen\default\deploy

compile:

[ddgen]

[ddgen] [Info] Property deployment is true: Deployment information is provided!

[ddgen] [Info] Property sourcepath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\DCs\com.bat.saf\createpwdsaf\_comp\src\packages

[ddgen] [Info] Property targetpath: C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\gdd

[ddgen] [Info] Property archivename: com.bat.saf~createpwdsaf

[ddgen] [Info] Property vendor: com.bat.saf

[ddgen] [Info] Property dcname: createpwdsaf

[ddgen] [Info] Property language: Available languages are automatically determined!

[ddgen] [Info] Property addpaths ...

[ddgen] [Info] SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model

[ddgen] [Info] SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extmm/_comp/gen/default/public/def/lib/model

[ddgen] [Info] SapDictionaryTypeServices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java

[ddgen] [Info] SapDictionaryTypesRuntime.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/ddicruntime/_comp/gen/default/public/default/lib/java

[ddgen] [Info] jrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java

[ddgen] [Info] aii_util_misc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.util.misc/_comp/gen/default/public/default/lib/java

[ddgen] [Info] cmiapi.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/cmi/_comp/gen/default/public/default/lib/java

[ddgen] [Info] exception.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.exception/_comp/gen/default/public/default/lib/java

[ddgen] [Info] com.bat.saflibrarylibrary_DCs.jar - C:/Documents and Settings/ankita/.dtc/LocalDevelopment/DCs/com.bat.saf/library/_comp/gen/default/public/library_DCs/lib/java

[ddgen] [Info] SapMetamodelWebdynproContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/wdp/metamodel/content/_comp/gen/default/public/default/lib/java

[ddgen] [Info] SapMetamodelDictionaryContent.zip - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/tc/ddic/metamodel/content/_comp/gen/default/public/default/lib/java

[ddgen] [Info] aii_proxy_rt.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_JTECHS/DCs/sap.com/com.sap.aii.proxy.framework/_comp/gen/default/public/default/lib/java

[ddgen] [Info] logging.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java

[ddgen] [Info] logging.perf.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/logging/_comp/gen/default/public/default/lib/java

[ddgen] [Info] com.sap.security.api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java

[ddgen] [Info] com.sap.security.api.perm.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/com.sap.security.api.sda/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproadmin.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynprobasesrvc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproclientserver.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynpromodelimpl.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynpromodel_dynamicrfc.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynpropdfobject.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproprogmodel.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproruntime_designtime_coupling.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproruntime_designtime_coupling_api.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproruntime_repository.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproruntime_repository_pmr.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] webdynproservices.jar - D:/eclipse/plugins/com.sap.tc.ap/comp/SAP-JEE/DCs/sap.com/tc/wd/webdynpro/_comp/gen/default/public/default/lib/java

[ddgen] [Info] Initialize generation templates from configuration jar:file:/D:/eclipse/plugins/com.sap.tc.ap/comp/SAP_BUILDT/DCs/sap.com/tc/bi/extddic/_comp/gen/default/public/def/lib/java/SapDictionaryGenerationCore.jar!/DictionaryGenerationConfigurationCompiled.xml

...........

[wdgen] [Info] Generating configuration/Applications/com.bat.saf.application.CreatePWDSAFApp/CreatePWDSAFApp.xml

[wdgen] [Info] Generating portalapp.xml

[wdgen] [Info] Generating wd.xml

[wdgen] [Info] Generating application.xml

[wdgen] [Info] Generating application-j2ee-engine.xml

[wdgen] [Info] Generating PublicPartFileList.properties

[wdgen] [Info] Generating PublicPartFileList.xml

[wdgen] [Info] Generation finished (6 seconds)

[wdgen]

[timer] WebDynpro generator finished in 6.734 seconds

[echo] Starting Java compiler

[javac] Compiling 47 source files to C:\Documents and Settings\ankita\.dtc\LocalDevelopment\t\D710B5AD58E6AFCAF1D71745F6993196\classes

Ant runtime 9.828 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-02-03 11:20:15 GMT+05:30 (IST)

Total build plugin runtime: 10.343 seconds

Build finished with ERROR

I check the JAVA_HOME, it is C:\Program Files\Java\j2re1.4.2_13\bin

In NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's, it is C:\Program Files\Java\j2re1.4.2_13

Do i need to chck any other setup?

Regards,

Manchari

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Manchari,

In your directory C:\Program Files\Java\j2re1.4.2_13 there is a bin folder. Check there for the executable javac.exe. If that executable is not available, you just have a Java runtime environment installed.

Download from the net a Java SDK (System Development Kit) of the right version i.e. j2sdk1.4.2_13. Point it to your NWDS under NWDS ->WINDOW->PREFERENCES->JAVA->Installed JRE's.

Hope this helps.

Regards,

Alain.