cancel
Showing results for 
Search instead for 
Did you mean: 

I canu00B4t build a DC that share only classes

Former Member
0 Kudos

Hi forum:

I want to make a Sharing Reference between two Web Dynpro DC, to share only classes of one project to another.

I make the next steps:

1) i created one DC1 project

2) i put a classes that i want to share into the folder src/packages.3) i created a new public part and included all the classes that i included in src/packages

4) there are 2 jars that i need them for compile, so i linked them in properties > Libraries and also i putting them into the lib folfer

5) i made the build of DC1 and i can´t do it, the problem is that i´m losting the references of my jar´s in properties > Libraries, and don´t appears more, and i need to put them again, but the problem continue.

what can i do ?

Can i do a par with my classes and put the property SharingAccess=true and access it from a WebDynpro ?

Thnks

Josué

Message was edited by: Josue Cruz

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Josue,

For using library jars in DCs, we need to create a seperate library project and use the library reference in the webdynpro project. <a href="/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro blog</a> from Valery says how to implement the same.

Hope this helps,

Best Regards,

Nibu.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Josue,

U can access the classes between two components by sharing them using webdynpro.

<b>For sharing the classes between DC's right click the projcet>properties>webdynpro references>sharing reference>Add</b>

u can add the class files here inthis location and try accessing it.

This should help u,

Regards,

Nagarajan.

Former Member
0 Kudos

Hi Nagarajan, yes i´m doing that but i can´t build the project because my classes needs a jar files, so when i try to build the DC this failed because the references in the externals jars are deleted. So i don´t know what´s happening, could help me ?

josué

Former Member
0 Kudos

Josue,

Find out the jars which u want for the project and save it locally in ur system.

Then go to java perspective.

select ur project>go to lib>paste all the jars that u want for the project to run inside the lib.

Switch to WD perspective.properties>java build path>add jars (not external jars).

go to orders and exports tab check all the jars that u have added now.

Hope this helps u,

Regards,

Nagarajan