Skip to Content
avatar image
Former Member

Jar file in Web Dynpro Java Application!

Hi All:

I needed a Jar file in my WDJ App.

I am using SP16.

Can someone provide ideas/instructions on how to do this?

Thanks in Advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 06, 2006 at 09:04 PM

    Hi Raja,

    What kind of Jar file you are missing. If You miss a Jar file, you can add by selecting this path.

    Project, right click, choose properties, select Java Buuild path, choose Java Build Path Tab, then select Add External Jar Files.

    After that you need to select this path.

    Program Files>SAP>JDT>Eclipse>Plugins>select the missed Jar from there.

    Thanks,

    Raj.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Create an external library DC, and stick the jar file into the libraries folder. Create a public part of type compilation, and a public part of type assembly. Add the jar file to both public parts. Specify a compilation DC dependancy between the WD application and this DC. That will solve your compilation problems.

      You also have to create a deployable DC, so you can get the jar file onto the server. Create a J2EE library DC, and create an assembly usage dependancy to the external library DC. Build the library DC, and the resulting ear file should contain the jar file. Deploy the library DC to the server.

      Lastly, you'll also need to create a library reference between the WD application and the deployed library so the class loader can find the library at runtime. That's done via project properties / Web Dynpro References / Library References. Create a reference, and fill in the name of the J2EE library. If you're unsure of the name, use the Visual Administrator to inspect all the libraries on the server - find your library, click on it, and look at the name in the right-hand panel - that's the name you need to use.

      Hope that helps.

      I also hope I got everything right 😊

  • avatar image
    Former Member
    May 16, 2007 at 12:08 PM

    Hi Raja

    For step by step procedure for using External JARs in Web Dynpro refer to the following blogs

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

    /people/bala.krishnan2/blog/2006/09/25/bid-adieu-to-bots--using-captchas

    I hope this is useful to you

    Regards

    Gauri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 16, 2007 at 12:30 PM

    Hai,

    Int his thread also discussing the same thing

    JAR deploy without dc

    Regards,

    Naga

    Add comment
    10|10000 characters needed characters exceeded