cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: jxl/Workbook

Former Member
0 Kudos

Hi Friends,

I have created an DC application where i read data from excel.For this i have used jxl.jar.I have created External Library DC and add this jar to it.

Now i have added the External Library DC to the actual application.

I dont get any compilation error.But when i execute it im getting the following error.

java.lang.NoClassDefFoundError: jxl/Workbook

at test.com.wdp.InternalExceldataView.<init>(InternalExceldataView.java:121)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

Can any one help me to over come this error.

Regards

Divya

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

have you added library reference in your webdynpro project?

regards,

Naga

Former Member
0 Kudos

Hi,

If i add library reference during deployment im getting Deployment finished with warning .

Should i had the External library dc or the jar.

Regards

Divya

Former Member
0 Kudos

hi,

you are giving wrong library reference.

have you given the correct library reference, have you checked tht in visual administrator?

what is the warning at deployment.

Regards,

Naga

Former Member
0 Kudos

Hi,

I checked in my server but i dont have a option called Javascript(Rhino)Library.

Is there any other way to check for the library reference.

Regards

Divya

Former Member
0 Kudos

Hi,

I checked in my server but i dont have a option called Javascript(Rhino)Library.

Is there any other way to check for the library reference.

Regards

Divya

Former Member
0 Kudos

Hi,

what is your external library project name?

Regards,

Naga

Former Member
0 Kudos

Hi,

My ExternalLibrary Dc name is poijars

Regards

Divya

Former Member
0 Kudos

hi,

check in vsual administrator in libraries with name poi jars.

other wise do one thing

create a new project of type j2ee servercomponent-->library

open server-provider.xml

give providername =sap.com

component name=poijars

display name=poijars

select jars tab-->add jxl.jar

right click on proj build library archive , deploy the sda file

now add library reference for your wd project =sap.com~poijars

Regards,

Naga

Former Member
0 Kudos

Hi,

Checked in Visual Administrator i dint fine it.

I have created project of type j2ee serverComponent->library.

But i don't find server-provider.xml,i have sda-dd.xml.

Can u tell me the exact thing that i have to insert inside xml.

Regards

Divya

Former Member
0 Kudos

Hi Naga Raju,

I found the solution where i create the J2ee project deployed sucessfully.

i also refered the visual administrator and specified the same in the library reference.Im not getting the warning during deployment but still facing same problem.

Regards

Divya

Former Member
0 Kudos

Hi,

add jxl.jar as described in the below blog

/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro

Regards,

Naga

Former Member
0 Kudos

Hi Naga Raju,

Thanks for uyour reply.

I have done the same way as mentioned in the blog.

Even though im facing same problem

Regards

Divya