cancel
Showing results for 
Search instead for 
Did you mean: 

ADD EXTERNAL .JAR

Former Member
0 Kudos

Good morning.

I need to add an external library to my project. The library is the Apache POI (http://poi.apache.org/). Anyway, I do not know how to do it because it gives me many problems. I tried modifying the classpath and placing it in the lib folder of the project from "Navigator". Also project properties, add. jar outside, and throws me the following error:

The project not was built STI Since classpath is incomplete. Can not find the file class for java.lang.Iterable. Fix the classpath Rebuilding Then try this project. "LocalDevelopment ~ name ~ vendor."

Also this:

Indirectly this compilation unit references the missing type java.lang.Iterable (typically Some required class file is referencing a type Outside the classpath).

Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.

I read the following link:

/people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components

but my version is 2.0.14 NetWeaver. On the other hand, did not understand because they do not know how to add "External Library DC. "

Infinitely appreciate any help. Thank you very much.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have a look at this link, it explains how to create a library Dc holding external jar files.

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/12177] [original link is broken] [original link is broken] [original link is broken];

In the below link look for "Libraries & External Library DC:" section for an example

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4512] [original link is broken] [original link is broken] [original link is broken];

Regards,

Vishweshwara P.K.M

Former Member
0 Kudos

Good morning.

Thanks for your help. I did everything the tutorial. I created the external library. I can see in my project "DC-Definition -> Used DCs" The public parts assembly and compilation. Now the problem is that it still does not recognize the classes of the libraries you want to use.

A level of code, when I try to instantiate the class does not recognize me. What could be missing? I did a couple of times step by step and gives me the same results.

Thank you very much again for your cooperation.

Former Member
0 Kudos

which jar file are u trying to add. also share the code you are writing to access the apis.

Regards

Deepak

Former Member
0 Kudos

I'm trying to work with POI that can be found in http://poi.apache.org/. The. jar I'm adding are

commons-logging-1.1.jar

junit-3.8.1.jar

log4j-1.2.13.jar

poi-3.7-20101029.jar

poi-examples-3.7-20101029.jar

poi-OOXML-3.7-20101029.jar

poi-OOXML-schemas-3.7-20101029.jar

poi-scratchpad-3.7-20101029.jar

Of the code is

 

 HSSFWorkbook HSSFWorkbook book = new ();

 / / Create a sheet inside the book
 HSSFSheet libro.createSheet leaf = ();

 / / Create a row within the sheet
 HSSFRow row = hoja.createRow (0);

 / / Create a cell within the row
 HSSFCell fila.createCell cell = ((short) 0);

 / / Create the contents of the cell and gets into it.
 HSSFRichTextString HSSFRichTextString text = new ("hello world");

When I look for the "Organize Imports" I do not recognize any other additional library

Edited by: Daynet1840 on Feb 26, 2011 3:19 PM