cancel
Showing results for 
Search instead for 
Did you mean: 

Error when importing an old web dynpro project

Former Member
0 Kudos

Hi all,

I've have upgraded my Sap Netweaver Developer Studio from 2.0.13 to 7.0 .

Now when i try to compile my old WD project it returs the seguent errors:

1)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

2)This compilation unit indirectly references the missing type java.lang.Object (typically some required class file is referencing a type outside the classpath) PackagePointer.java Project/gen_ddic/datatypes/com/sap/function/model/types line 1

Where can i find the java.lang.Object?

thanks, Daniele

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I had the same problem, but not when adding external library. The problem is in the corrupted classpath, I didn't found out how that happend.

However, this solves the problem:

- go to your project properties, Java Build Path, and check whether there is a variable "JRE_LIB". If not, add it.

(value e.g. C:\j2sdk1.4.2_12\jre\lib\rt.jar )

after rebuild project and/or rebuild the DC it will be ok.

-

Radoslav

Former Member
0 Kudos

Yes, this solve the problem, i do it the same way, but:

When something went wrong and you have to use some of the repair tools like "Project structure and classpath" (some times we do at beginning) the JRE_LIB were deleted, ant the error comes back.

When you dont use that, its all fine.

former_member664606
Discoverer
0 Kudos

Hello ,

how can i rectify the classpath at Nwds tool .

Former Member
0 Kudos

Hi Daniele,

Try to right click on the project and then

click repair ->Project Structure and Classpath

After that Build and deploy

Regards,

Raghu

Former Member
0 Kudos

already done but didn't work

Former Member
0 Kudos

ok found thanks to all

Former Member
0 Kudos

Hi Dabiele,

I am also doing the same. I am getting this error:

"The project was not built due to classpath errors (incomplete or involved in cycle)."

Can you please tell me how you resolved it.

Thanks,

Raj.

Former Member
0 Kudos

I am having the same problem. Please explain how I can fix it.....

Former Member
0 Kudos

The same problem here. Please explain how to fix...

Former Member
0 Kudos

As said right click on the component and check for the options repairs or change class path structure.

Doing this will solve the problem.

If you still face the problem after this.

Close your NWDS application and open it again.

Regards,

Nagaraju Donikena

Former Member
0 Kudos

Hi all,

maybe is too late.. but I wish to share my humble experience with you.

I encounter in a similar problem...

When I'm working with Web Dynpro (Messagge Pool) suddenly the NWDS seems to be crazy and give me the error "this compilation unit indirectly references the missing type java.lang.Object "

I read many post, this one too, but still got the problem.

Compare the current WD project with another one I found that my project didn't have rt.jar ibrary in its library list.

So I add in WD project - properties - Java build Path - Libraries the rt.jar library.

In my case it was in C:\j2sdk_dir\jre\lib\rt.jar.

So I build project and the problem desappear.

I hope this experience will be usefull.

Cristian