cancel
Showing results for 
Search instead for 
Did you mean: 

How to add jxl.jar (3rd party tool) to a DC

Former Member
0 Kudos

Hi ,

I have my DC where there is entire application.In that application in one view i am using fileupload.For that i want jxl.jar 3rd party tool.

Can anyone plese give me step by step procedure for adding this 3rd party tool to my DC

Regards

ChandraShekar

View Entire Topic
Former Member
0 Kudos

Hi..

You need to create an external library dc and use its public parts in the DC containing jxl.jar.

Suppose the MainDC which is using jxl.jar be MainDC.

Go to DC perspective in NWDS.. create a DC (type External Library) say jxlDC.

Now go to Resource Perspective in NWDS and u will find the ur jxlDC project open. Expand the project. Under the Libraries folder, paste the jxl.jar file. The jxl.jar file will be added under Libraries folder. Right click on that jxl.jar file-> Development Component-> Add to Public Part.

A popup window will open. Give a public part name say... public_jxlCompilation. Click the radio button (Provides an API for developing/compiling other DCs). Then Finish. This public part created is for compilation.

You need to create another public part of jxl.jar for Assembly purpose.

Follow the similar procedure... Right Click on jxl.jar->DC>Add to Public Part. give public part name public_jxlAssembly. But now click on the radio button (Can be packaged into other build results). Then Finish.

So now u have two different public parts of jxl_jar.. one for compilation and other one for assembly.

Now.. right click on the jxlDC project-> Development Component->Build.

Then go to webdynpro perspective where your original MainDC project is open. In the MainDc.. go to Used DCs->Add Used DC... Drill down to the public part of jxlDC... select both the public parts that you have created (ie for compilation and assembly).. select the dependency to ONLY Build Time.

Build your MainDC( right click on MainDC-> Development Component-> Build)... Do not use Project Rebuild option. Deploy your MainDC project.

Hope this would solve the problem.

Regards,

Sayan Ghosh

Former Member
0 Kudos

Hi Sayan Ghosh,

Thanks for your reply.The problem here is my NWDS version is 2.0.9.I dont have that ExternalLIbrary option to create a DC of ExternalLIbrary.

Could u plz suggest me any other alternative to complete my task

Regards

ChandraShekar

Former Member
0 Kudos

Hi Chandrashekar,

Have u tried by externally adding jxl.jar from project-> java Build Path ?

Regards,

Sayan Ghosh

Former Member
0 Kudos

Hi,

I tried in that way.When i add that jar to the build path and click DC->Deploy all the external jars added to the build path gets disappeared.That is not visible in build path..it is giving same error as class not found

Regards

ChandraShekar