on 11-26-2007 10:31 AM
Hi,
I've developed an webdynpro application long time back and it was working fine then. Now, we are in phase-2 of the application and when i import the project structure in my NWDS SP16, I'm getting a weired error. The development envirnment is kept same.
The error that am getting is as follow:
<b>This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath)</b>
I've used some webservices in my project. Could any please tell me why I'm getting this error? Earlier, it used to work without error, but not now.
Any help will be appreciated.
Thanks & Regards
Abhinav Sharma
Hi Abhinav,
Make sure that in NWDS->Windows->Preferences->Java->Classpath Variables->JRE-LIB -rt.jar is added.
if this doesn't help then add
<classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
in your .classpath file of Webdynpro project.
Best regards,
Sangeeta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sangeeta,
Thanks for replying.
I tried what u've suggested but it doesn't work. Actually, I'm copying my existing project and its .classpath file already has <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>. But when i copy it to the local development workspace, the entry went off. I don't know why it is behaving like this?
Thanks & Regards,
Abhinav Sharma
Hi Sangeeta,
Thanks for ur reply. I tried it but it doesn't work for me.
I've then created a new webdynpro dc project and import a model and then add all the jar files that it contains to my project and then add the class variable JRE_LIB and bingo, problem solved.
Thanks once again for ur time and efforts.
Regards,
Abhinav Sharma
Hi!,
Right click the Project -> Repair ->Project Structure and classPath.
Hope this will help you.
regards,
Mithileshwar Sahu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.