cancel
Showing results for 
Search instead for 
Did you mean: 

build error in model

Former Member
0 Kudos

Hi,

I created a DC and created model in it. I called rfc function in model. i get the error regarding java compiler . i read other posts on sdn and accoridngly changed my environment variables. but still the error is seen

kindly help - thanks.

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

environment variables :

JAVA_HOME: C:\j2sdk1.4.2_12

CLASSPATH: ;.;C:\j2sdk1.4.2_12\lib\tools.jar

PATH: ;C:\j2sdk1.4.2_12\bin

windows - prefrence - java - installed jre - C:\j2sdk1.4.2_14

windows vista system

nwds 6.0 version

-thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

try to remove this varible from classpath variable thn do okay.now go to java build path agn add this variable n add this variable agn from java build path from project properties.

u cn do one more thing

go to proj property->java build path ->add library

thn add library ->JRE system library

hpe it hlps

Regards

Khushboo

Former Member
0 Kudos

hi Khushboo

when i right click on my project and go to properties

then i go to jave build path

and i add library C:\j2sdk1.4.2_12\lib\tools.jar

then it says - not a root JDK directory

the only changei cud make at this place is check the checkbox of JRE_LIB - c:\j2sdk1.4.2_12\jre\lib\rt.jar

that didnt help

and in environment variables should i compeltely remove the class path variable ?

thanks

r

Former Member
0 Kudos

Hi

if u'll remove env. variable from classpath it'll remove it from ur project only..this will still remain in ur java classpath variables of NWDS..so not to wrry abt it..

once u remove ,u agan add it agn from proj property-> java build path-> add varible

C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.ext.libs.j2ee_1.3.0/

path shud b like this for varible if JDK is properly installd

Regards

Khushboo

Former Member
0 Kudos

hi

i deleted the classpath variable from environment variables

then i went to nwds - right click prject - properties - java build path - libraries tab - add variable - edit - new

here i gave

name = classpath

path = C:/Program Files/SAP/IDE/IDE70/eclipse/plugins/com.tssap.ext.libs.j2ee_1.3.0/

but its not enough, its asking me till the file name - so further i go to lib/ then which jar file shud i give ?

kindly help, thanks.

Former Member
0 Kudos

hi Khushboo

I observed that already this path given by you is existing in by java build path by name TSSAP_JAVAX_HOME

thanks

Former Member
0 Kudos

HI,

Try it by changing Compiler compliance level to 1.4

Choose Window> Preferences>Java>Compiler>choose

Compliance and Classfiles tab-- > Compiler Compliance Level

change this to 1.4

Regards

LN

Former Member
0 Kudos

hi

u dnt hv to create new variable just readd the same JAVA_HOME.

go n add same variable via Edit.

it will automaticlly add all jar file ..if its nt doin the same .select variable n go to Extend button instead of Edit.

it'll add all jar in lib for variable

but if u r doin wid new variable just exten it for new variable..

it will be bettr if u add the same variable,so tht system can recognize it

Regards

Khushboo

Former Member
0 Kudos

hi Lakshmi, the compiler compliance level is 1.4 i checked it

hi Khushboo, 'add same variable' means what exactly?

i go to libraries tab and click on add variable

If i select TSSAP_JAVAX_HOME and click on edit . nothing happens. already the path given by you is there in it

if i select TSSAP_JAVAX_HOME And click on extend then lib node under which there are several jar files

i selected all of them and and said ok

then i build the project , again same error is seen

-thanks

Former Member
0 Kudos

Hi

i think thre is some problm wid ur java installation

it could b hlpful if u reinstall JDK.

Regards

Khushboo

Former Member
0 Kudos

Hello Khusboo

i re installed

the jdk and the nwds

now the error isnot there

thank you for your help

Answers (0)