Using external libraries with Developer Studio 7.1 Composition Environment

Hi,
I downloaded DS 7.1 CE and tried to develop a simple application which uses an external library.
I created a development component for "external library" for the local development -> MyComponent, giving it the name "test2" (for the domain basis).
I imported the external library file using Import -> File System , then selecting the .jar file.
In the component properties browser I added a public part naming it "mylib2" setting the purpose to "ASSEMBLY" (my intention was that the libarry will be transferred during the deployment to the application server).
I right clicked on the public part to "managed entities". I selected the archive tree and checked the library file shown there (the one I imported before). #
Then I opended component properties of my web dynpro project and clicked on "Dependencies". The I chose "Add..." and selected the "test2" development component I created before (see above).
Then I tried to deploy the project (which uses this external library) using "Deploy Archive and Run"
After deployment the browser window opens and shows the ClassNotFoundException
So what did I oversee or do wrong?
BTW: Is it necessary for using external libraries to use a full fletched NWDI? Or can I use external libs also with netweaver development environments freely available for download on sdn.sap.com?
Any hints?
Thanks a lot
Hannes

Hannes,
If you want to use external libraries with DCs then you should follow the NWDI completely.
Check this step, otheways of using external libraries is mentioned <a href="http://help.sap.com/saphelp_nw70/helpdata/en/e3/de813e77d46245e10000000a114084/frameset.htm">here.</a>
Regards
Abhilash

Similar Messages

  • Using external libraries with Actionscript Project

    Hi,
    I've hit a bit of a brick wall trying to do something that I figured would be a relatively simple task. I'm working on multiple projects and I'm trying to build a number of SWC libraries shared between a number of Actionscript projects using Flash Builder 4. The projects using the SWC's build just fine, but yield this error when run:
    VerifyError: Error #1014: Class <whatever> could not be found.
    Here's a simple example:
    1) Create a new library project.
    2) Add a new Actionscript file in the "testpackage" package.
    3) Slap this code into that file:
    package testpackage
        public class stuff
            public function Testing():void
                trace("Oh yeah!");
    4) Create a new Actionscript Project named Launcher
    5) In "Properties->Actionscript Build Path", hit "Add SWC Folder" and browse to wherever the library project gets built to.
    6) In the AS file that's generated, add code something like:
    package
        import flash.display.Sprite;
        import testpackage.*;
        public class Launcher extends Sprite
            public function Launcher()
                var s:stuff = new stuff();
                s.Testing();
    7) Run this bad boy.
    I get the above error and I have no idea why. Everything builds fine so I'm not sure what I'm doing wrong. I read somewhere that you can manually extract the .swf file from the generated .swc and load that explicitely in code. This is a pretty horrible workflow and I hope it's not the answer
    Thanks a ton in advance!
    -D

    Check  linkage type in Build Path for project Launcher when you add Swc folder. It has to be merged into code.
    If it is external, you'll see this error.
    That aside, why not do "add project" instead of "add swc folder"?
    -Anirudh

  • Using external libraries in eSWT on 7.1

    Hi again.
    Is it still possible to use external libraries when developing applications for Handhelds on Mobile 7.1 (eSWT)? Or do we have any restrictions here?
    Thanks,
    Sascha

    Hi,
    as long as your have POJOs it should be ok to use them still.
    Regards,
    Oliver

  • Using external libraries over signed Java applet: InvocationTargetException when running locally with 7u51

    We have a signed Java applet that uses external libraries, specifically the OpenOffice application libraries.
    We have a problem running Java applet with 7u51 of "InvocationTargetException" when use these libraries OpenOffice, that is not signed; regardless of the browser used (Mozilla Firefox, Explorer, Chrome).
    Please, as you could solve this problem?   This problem can not arose with 7u40 and earlier..
    Best regards.

    In  java - JRE 1.7.0_51-b13 and signed applet - Stack Overflow found solution. I've missed to add in external jars manifest this: 
    Trusted-Library: true

  • Use external libraries in web dynpro java

    Dear Experts,
    I need to add an external library to my project.
    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:
    [javac] Compiling 213 source files to D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\classes
         [javac] ERROR: D:\WORK\WORKSPACE\7.2.jdi\LocalDevelopment\t\2BF09F48E6D0E2C201262098A0E4D79F\gen_wdp\packages\elsys\com\.....\wd\comp\....\MainView.java:34: package com.estaf does not exist
         [javac] ERROR: import com.estaf.jpay;
         [javac] ERROR:             
    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/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    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.
    I use SAP NetWeaver Developer Studio SAP NetWeaver 7.2 SP03 PAT0007 version.
    Infinitely appreciate any help. Thank you very much.
    Rasim
    Edited by: Rasim Donmez on Apr 11, 2011 4:50 PM
    Edited by: Rasim Donmez on Apr 11, 2011 4:51 PM

    Hi,
    please find below path for adding External Jar files.
    right click on the webdynpro dc and select the properties .
    then clcik on Java Build path->select libraries->select External External Jars.
    after that just rebuild your project (not Build).
    Regards,
    Govindu
    Edited by: Govindu Nagotla on Apr 12, 2011 2:28 PM

  • Using external libraries in Web Dynpro DCs

    Hi,
    I've followed the example in the following blog for using external libraries in my Web Dynpro (WD) DCs:
    /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro and some other messages in the forums. However, it isn't working exactly as described in the blog. I have to twist it a bit to get it work. I were wondering if anyone has any better solution for this problem?
    The senario is like this:
    - External libraries: a.jar, b.jar
    - WD DCs: wd1, wd2 in that wd1 and wd2 are both using external libraries a.jar and b.jar; wd1 is a library DC that can be reused in wd2.
    According to the example in the blog, the following steps are carried out:
    - Step 1. Create an external library DC, add a.jar and b.jar to public part "ExternalLibs" as described in the blog.
    - Step 2: Create, build, deploy “J2EE Server / Library” DC. (Add reference to the public part of the external library DC as a used DC, with both Build-time and Run-time dependency).
    - Step 3: Create WD DC wd1, add used DCs and WD reference libraries as described in the blog. Add WD components as public part. Build and deploy WD DC wd1.
    All are ok so far!
    - Step 4: Create WD DC wd2, add used DCs and WD reference libraries as before. Try to build and FAIL!
    The error occurs here because wd2 cannot access to the classes in the external libraries, similar to the problems described in thread Re: Problems with deploying a JAR file.
    I've found a workaround, although quite tedious and cumbersom, but it works. My solution so far is:
    - Round 1: Perform those 4 steps above, but in step 1, after adding the jars to the public part "ExternalLibs", set the property of the public part "purpose" to "compilation", then build and deploy all other DCs accordingly.
    - Round 2: Change the public part "ExternalLibs" property to "assembly", then bulid and deploy all other DCs again.
    And now I can reuse the external libraries in my WD DCs as well as WD DCs as library in other WD DCs.
    I know it's not an elegant solution. So I were wondering if the experts out there can help me with better solutions?
    Many thanks in advance for your help.
    Regards,
    Van
    Edited by: Van Hai Ho on Dec 18, 2007 3:30 PM
    Edited by: Van Hai Ho on Dec 18, 2007 3:31 PM

    Hi Pascal,
    Thank you so much for your help. Your suggestion has helped to make my life a lot easier.
    Regards,
    Van

  • Using external libraries in DS 5.2 plugins

    Hello,
    I'm writing a moderately complicated preoperation plugin for Directory Server 5.2, and I've linked in glib 2.0 so I can use some of its data structures. Aside from some memory leaks I'm tracking down, things look okay, and the plugin behaves as expected.
    Are there any reasons why I should avoid using external libraries in the directory server? I know that SLAPI has its own memory management code that glib isn't using, but I don't think that's the reason I have the leaks.
    Thanks!
    -lars

    Plug-in library code runs inside the memory space of the server process, so it can be nice to have the memory management from the API.
    Also if you have things coming in from all over the place, maybe there's a higher security risk, since there are more places where somebody could replace a dynamic library and do bad things when you load that code.
    I don't recall us putting anything in the docs that said you should make a special effort to avoid doing linking out to external libraries. (If it's there, I don't see it with a quick google search.)
    Mark

  • How to create a web services with Developer Studio?

    hi all,
    I would like to know how can I create a Web Services with Developer Studio 7.0, but a try because I could not publish it to consume.
    thanks!

    Thanks for your answers
    Web Services try when I get the following error:
    http://img386.imageshack.us/my.php?image=errorms9.jpg
    <--Localization failed: ResourceBundle='com.sap.caf.rt.resources.CAFExceptionResources',
    ID='MMR_BO_NOTFOUND', Arguments: ['Prueba2Service']-->
    I do not know what the cause of error
    thanks

  • Error when using a plugin from Developer Studio

    Hi,
    When trying to use VSS plugin from Developer Studio v2.0.14, I receive the error: "800401f3: Invalid class string".
    Does anyone received the same error in a similar situation and know how to fix it?
    Thank you in advance,
    Janina

    Hi Janina,
    First check whether you have the correct version of the plugin for the NWDS. Reason is, different versions of plugins exist for different versions of Eclipse. I wasn't able to find a version for Eclipse 2.0, may be it is hidden somewhere in the internet
    If you couldn't find the correct version then you need to manually Check-in and check-out the files from the VSS client outside the Eclipse IDE.
    Best regards,
    Guru.
    PS: Award points for replies.

  • Can we use external drive with ipad air

    can we use external drive with ipad air?

    There are some wifi-enabled drives that allow you to stream content (music, films, tv programmes) to an iPad, but you can't directly connect one to an iPad.

  • Can I use external speakers with the iPad when using Facetime?

    Can I use external speakers with the iPad when using Facetime?  How do I do that?

    They have to be either plugged in via headphone jack or the dock port at the bottom. If you can. I've used it on apple tv, but that's it. I don't know if the others work, but I don't see why not. Try plugging in speakers in the headphone jack. You will get an answer :)

  • How to use external libraries and JAR files with OpenScript

    Hello.
    I am trying to include ApachePOI, JODATime, and Javamail in my scripts to handle different aspects of our automated performance tests.
    I followed the documentation for Eclipse to be allowed to utilize these external libraries, however, when I attempt to run my tests the classes and methods that are being imported, show up with errors saying that they do not exist.
    I think perhaps that I am using them incorrectly. I cannot see them as script assets, package assets, or project assets using the properties for these items. An error pops up and says those screens are not displaying correctly or display incorrect information.
    If anyone can provide guidance on using these items, that would be great. Right now I'm trying to include them as "previously exported scripts" but I'm not sure that method will work.
    Any advice is appreciated.
    Thanks.
    --tiff                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Tiff
    For OpenScript 9.* there is an out of the box solution for that, all you need to do in OpenScript go to:
    Script -> Script Properties -> Script Assets -> Add -> jar File ....
    And that is it.
    Alex

  • How do I use infopath 2013 with visual studio 2013 to modify forms with code?

    Dear all,
    I am using sharepoint online and infopath 2013, I wonder how do I edit infopath 2013 forms with visual studio? When I try to edit form code it says  I need visual studio 2012 and some other tools, I installed them and visual studio 2013, I wonder how
    do I get rid of the message and start coding? Can someone provide a detailed procedure of doing so? I am having trouble with creating multiple items with single infopath form with repeating table on sharepoint online. Thanks.
    Timothy

    Hi,
    According to your post, my understanding is that you want to create InfoPath form with code using Visual Studio.
    More information about develop InfoPath form with Visual Studio:
    http://msdn.microsoft.com/en-us/library/office/ee526362(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/aa942693.aspx  
    For the second question, I suggest you can create another post , it will be easier for others to focus on one question in one thread.
    Best regards

  • Possible to use external HD with 2 machines?

    Aloha all, I have been using an external HD with my MacBook to store librarys for iPhoto, & Aperture. It has worked great, but today I hit a snag. I cannot get the drive to show up when I plug it into my G5. I would like to be able to use it with both.

    Do you have a LAN that you can connect the two Macs to? If so then log into the MacBook from the G5 and select the external HD. That will let you access any of the libraries on the external HD. Just be sure to set the ownership of the external HD to be ignored as seen here.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Using CVI libraries in Visual Studio C DLL

    Hello,
    I am attempting to enhance a legacy VS 2008 Visual C based DLL to use NI Shared Variable/Network Variable support.  From what I have found in the documentation, it seems to imply that CVI libraries can be imported into an existing VS by using the libraries in the ext/msvc64 directory.  I originally included just the cvinetv.lib file to my linker list.  After reading more of the CVI programmer manual, it seemed to imply that cvirt.lib and cvisupp.lib were also needed.  Under both circumstances, the linker throws a conflict between CVI libary and MSCVRT.  Since this is a legacy project and not a CVI wizard generated situation, I'm wondering if there are more tweaks that need to be done my project settings.  I also found a mention of needing to list "libc" under "Ignore Specific Library".  Doing this made no difference either?
    Any help would be greatly appreciated..especially if this approach is not a valid way to take advantage of shared network variables in a standalone DLL.
    Thanks,
    Chris.
    Linker errors:
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _encode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _encoded_null already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(tidtable.obj) : error LNK2005: _decode_pointer already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0dat.obj) : error LNK2005: _amsg_exit already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0dat.obj) : error LNK2005: _initterm_e already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crtheap.obj) : error LNK2005: _malloc_crt already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(mlock.obj) : error LNK2005: _unlock already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(mlock.obj) : error LNK2005: _lock already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(winxfltr.obj) : error LNK2005: __CppXcptFilter already defined in MSVCRT.lib(MSVCR90.dll)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_a already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xi_z already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_a already defined in MSVCRT.lib(cinitexe.obj)
    1>LIBCMT.lib(crt0init.obj) : error LNK2005: __xc_z already defined in MSVCRT.lib(cinitexe.obj)
    1> Creating library .\Debug/pil_dlld.lib and object .\Debug/pil_dlld.exp
    1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
    1>LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup

    I wonder if it is possible to some forum admin to mark Christopher's last reply as the solution. I've tested what he suggested, since I was trying to do basically the same thing, and it worked like a charm. Also thanks to Edna-S for confirming the validity of the fix.
    Wouldn't it be useful to update document 3TTHO2ZW to include Christopher's findings?
    Best regards,
    Robst - CLD
    Using LabVIEW since version 7.0

Maybe you are looking for

  • Chapter stops before end of chapter when I add audio

    Hi Basically the problem is, if I have a timeline with several chapters, each chapter being a different m2v file, then I want to add AC3 files for the audio. I have different AC3 files for each chapter. Before adding the audio the preview works fine,

  • Enhancement on MRKO Transaction

    Hi, I am working in MRKO transaction, which is to create accounting document using vendor and material documet. Problem is EXCHANGE RATE. I have to create accounting document as per Vendor suggested exchange rate, Not per system caliculated exchange

  • How to acces portal services in webdynpro

    Hi I want to access portal services from webdynpro,  i red that for that we have to  provide sharing reference in webdynpro application. which will be PORTAL :< Vendor name>/<Full qualified name of the portal service> my question is how to find out v

  • Where exactly are old versions of files stored on the harddisk?

    The way the new versions-feature works is actually too magical for me. For sake of control I want at least to know, where all those old versions of documents are actually stored on my harddisk. With that knowledge perhaps further questions like how t

  • Open dialogs non-functional/closing/crashing

    Since updating to 10.6.8 (with combo update) I've encountered an issue with the Open dialog: 1. In Logic 8 (among others), I click open, click through a couple of drives/folders and the open dialog closes immediately. 2. In Chrome, after the second c