on 09-18-2008 5:33 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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.
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.