cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find the class file for java.lang.Object

Former Member
0 Kudos

Hello,

I applied the Repair Project Structure and Classpath of a Webdynpro development component. Now I open the Implementation tabs of all my projects and all the code are underlined as erroneous. The task panel shows the following error message:

The project was not built since its classpath is incomplete. Cannot find the class file for java.lang.Object. Fix the classpath then try rebuilding this project.

I tried importing all classpaths but it still showing the code underlined as erroneous and the error.

Please help!!!

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

p_2_5_6_9_6_0
Active Participant
0 Kudos

I have faced this issue before. We resolve it in this way:

1.) Right click the project in question, go to the Properties.

2.) Go to the Java Build Path Section

3.) Click on the Libraries Tab

4.) Click the Push Button "Add Variable"

5.) Select the entry "JRE_LIB - <path>\jre\lib\rt.jar"

This will add all the jre libraries to your project.

Next close the project and re-open.

Error will vanish.

HTH.

Thanks.

p256960

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

which java and NWDS versions are you using ?

Regards,

ramesh

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

I am using Java Version 1.6.0_03 and NWDS version 7.0.07.

The solution will work for any other NWDS version like NWDS 2.0 (04). Although - I have not seen this problem with NWDS for CE 7.1

HTH.

Thanks.

p256960

PS: Sorry Ramesh - but I didnt notice who the question was directed at.

Edited by: p256960 on Oct 23, 2008 9:18 AM

Edited by: p256960 on Oct 23, 2008 9:19 AM

former_member197348
Active Contributor
0 Kudos

Hi,

Please do the following:

Project --> Properties --> Java Build Path --> Select Libraries Tab

Click --> Add Library --> JRE System Library --> Select the JRE you are using --> Click on Finish.

This should add the missing JRE Jar files into the class path.

Regards,

Siva

Former Member
0 Kudos

Hi Miguel,

Try the option of Reloading your project and then Rebuilding it.

Reload as an option can be seen in the context menu for your project.

Regards,

Alka.