cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NoClassDefFoundError: jxl/format/CellFormat In DC

Former Member
0 Kudos

Hi Guys,

I am using Jexcel Api's for exporting table data to Excel.

I have included the jars in the lib and the properties of the project, it works fine on a normal project but when i wrap this project into a DC its gives me an error

java.lang.NoClassDefFoundError: jxl/format/CellFormat

My DC is not dependent on any other DCs.

Do we have to perform some additional steps to to use external jars in DC.

Thanks,

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I am facing the same issue in Web Dynpro Java DC for Netweaver 7.3

I have added the external library DC's compilation public part to WD and enterprise application DC's assembly pp to WD but still in the runtime i get an error java.lang.ClassNotFoundException: jxl.format.CellFormat

The jxl jar is already added to the external library DC.

We cannot add Web Dynpro references in 7.3 so please suggest an alternative.

Please help/suggest.

Best Regards

Gaurang Dayal

Former Member
0 Kudos

HI,

Follow the reply posted by Mrs Laxmi.

After that if you are getting this exception at runtime,

1: Decalre one java library project , say 'JexcelLib'

2:Copy jxl.jar file and Go to navigator --> Right click on JexcelLib and paste .

3:Then Build and deploy the .sda file into server

4: Now.. Right click on your DC>Properties> choose WebDynpro references > Library references tab> add

5: give name as 'sap.com/JexcelLib'

6: Build your DC and deploy and run

Regards

LN

Former Member
0 Kudos

Hi,

Refer to this blog:

Regards,

Apurva

Former Member
0 Kudos

Rakesh,

you need to create an external library dc and include all your jars in that. From your application you will have to add the above external library dc as a used dc.

It will work then.

--MLS