Using Third Party Libraries in J2ME IDEs

How easy is it to use functions from a third party library in J2ME IDEs? Is it usually just a matter of including the library or is more configuration involved?
Thanks for your time.

I had this problem a year ago. I'm surprised it hasn't been fixed yet. Here is what I had to do to create an external library DC for my third-party apis.
- Create a java library DC.
- Switch to resource view
- Edit .dcdef to change component type to Library
- Edit .project file, Delete Nature Java line
- Restart IDE so that it shows as Library DC instead of Java
- Switch to Resource View
- Get all the third-party jar files into folder structure com
- Copy and past the root folder into src (this would bring all class files)
- Add build.vm in cfg folder (content #BuildSecondaryLibrary())
- Add Public Part for API Reference (the IDE should allow to add the all the classes from the selected folder. You probably will have to select each classes manually. Very problematic when you have a lot of classes from your third-party provider)
- Build and Deploy
- Now go to your other project where you want to refer this external library DC
- Add to the external library DC as used DC (select build and deploy options)
- Build and Deploy
- Make sure provider.xml in the sda file has reference to dfc lib (for some reasons the IDE doesn't want to reference the external library DC and just skip it despite the fact that you've selected build and deploy options when you referenced the used DC)
- If not extract the SDA file, Edit the provider.xml, and zip back. then Build and Deploy

Similar Messages

  • Using third party libraries

    Hi,
    I have an oc4j application which refers to certain third party libraries ( jar files).
    Which xml files should I be making an entry in, for the application to refer to these jar files?
    Regards,
    Rishikesh R.

    The <library-directory> element of the application.xml file specifies either a relative or absolute path or URL to a directory or a JAR or ZIP archive to add as a library path for this OC4J instance. Directories are scanned for archives to include at OC4J startup.
    -Frances

  • Third-party library for J2ME

    Can I use third-party library in the J2ME wireless toolkit? and How?
    I have trouble using MathFP library provided by http://home.rochester.rr.com/ohommes/MathFP/
    with the J2ME wireless toolkit(1.04, 2.1 and 2.2).
    If I can not use third-party library with the toolkit, is there any way around it?
    Also, I find out that even if I wipe out my CLASSPATH on my windows system, the J2ME wireless tool kit still remember the old CLASSPATH. It means I still can compile Java project with J2ME wireless toolkit, but I can not compile any Java file with command line ( it can not find any Java library!). The bottom line is J2ME wireless toolkit has special setup. And I don't know to use third-party library with the toolkit. If developer can not use third-party library with the toolkit, it would be kind of ridiculus. It would be just like the Visual Studio .NET can not use any other third-party DLL.

    Hi,
    You can very well use third party libraries in J2ME as far as it is compatible. If u have the source code of the library copy it in to the src directory of the project or if u have only the library then put it in lib directory of the project

  • Login module access to third-party libraries?

    G'day,
    I have a simple login module that is currently deployed in Netweaver 2004s. It is callable by both Netweaver AS and Netweaver Portal, and was implemented using Netweaver Developer Studio.
    I would like to have this login module use third-party libraries, but I am not sure of the best approach to take here.
    Do I just drop the third-party libraries into the jre/lib/endorsed directory of the JDK, or is there a better way of putting the third-party libraries onto the classpath?
    When I edit the server/provider.xml file of the login module library in Developer Studio, it only allows me to make references to jar files that currently exist in the workspace. So adding references to external jar files does not seem to be supported here.
    Is there a proper place to drop third-party jar files, so that they can be used by my login module?
    --Geoff

    Hi,
       There are different ways. as you said You can either drop it in jre/lib folder or a clsspath setting will do.
    But some times the server will not be able to catch up those libs so You can set the path to these libs in config tool. This will ensure the server will take these libs for sure.
    If you have set the classpath NWDS will take this reference

  • No of classes, Methods, Lines of codes, DLL's used and Third Party Libraries details identifying tools

    We have started a project to migrate 100+ Web Applications developed using legacy Microsoft technologies to latest .Net 4.5 Framework.
    The following are the planned migration approach
    Classic Asp à                                                   
    Asp.Net 1.1 Framework à Asp.Net 4.5 Framework
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Direct Migration)
    Asp.Net 2.0, 3.5, 4.0 Framework à         Asp.Net 4.5 Framework (Application Rewrite
    using MVC/Entity Framework)
    VB 6 (COM/DCOM) à                                  
    C# .Net 4.5 (Web Services)
    We have to analyze 100+ applications to categorize them as Simple/Medium/Complex conversions for planning the timeline for completing the migration activities.
    Analysis includes identifying the following details - No of classes, Methods, Lines of codes, DLL’s used and Third Party Libraries  details
    for 100+ Microsoft applications.
    Could you please let me know do we have any effective tool to identify above mentioned details?

    This forum is for Microsoft Project Server, an EPM tool. You will need to find a more suitable forum for your question.
    Good Luck with the conversion!
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • Confusion about third-party-libraries in different versions in CE 71.

    Hi
    After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    Does it also work for other third-party-libraries than hibernate? Does it work at all?
    3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    Best regards
    Bettina

    Hi Bettina,
    I'll try to answer your questions:
    >
    > Hi
    >
    > After some research on the use of different versions of third-party-libraries in SAP netweaver CE 7.1, I am actually quite confused and would be happy if someone could shed a light on that subject....
    >
    > 1. Is there a way to tell netweaver CE 7.1 to use a library in my WEB-INFlib-folder by simple configuration?
    >
    > E.g. we would like to use a third-party-lib in a newer version than the one which is loaded by CE 7.1. Many application server provide a simple configuration option (e.g inside META-INFapplication.xml) where the web as can be forced to use the library inside WEB-INFlib for this application.
    >
    First of all, the appropriate docs are here: [http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm].
    Basically what you do is define a lib project in the studio and deploy it do the server. This may be less comfortable then just configuring manually, therefore it work better in larger environments because the server checks that libs are available in all running instances - which it could not do if you manipulate diretories manually  (an approach you should never attempt in any SAP envrionment)
    > 2.Is the concept of "heavy loading" described in a blog by Georgi Danov(Using Hibernate in SAP NetWeaver Composition Environment) the answer to question 1.?
    >
    > Does it also work for other third-party-libraries than hibernate? Does it work at all?
    >
    If Georgi describes it, I hope so, as he is one of our developers who knows best.
    > 3. In the blog mentioned in question 2, Mr. Danov is talking about "shared libraries". Does this mean, that I have to forget everything about "bundled" and "standard" libraries explained in help.sap.com/CE, if I want to create a heavy loader?
    >
    "shared" are all of theses libs, as otherwise they would be specific to an application.
    > He is referencing another blog (Applications and shared libraries) which is two years old? Can I still apply the information there to CE?
    >
    This was about anearly version of CE and even Georgi updated the blog this year to talk about slight differences. So yes, this still applies.
    > 4. Are "Bundled libraries" applicable when using different versions of third-party-libraries in CE 7.1?
    >
    > In "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Bundled libraries: These provide resources only to a single enterprise application, and are packed inside the application's EAR file."
    >
    > =>As I want to provide the lib only to my enterprise application, I will probably have to create a bundled library, right? Does this also work if netweaver CE 7.1 uses a different version of the same library?
    >
    That depends... Your application uses it's own classloader which means it should only use your libs in case there is another version available on the server. But if you're trying to deploy a lib that is used by a service of the server (int that case loaded by the server not your classloader!) I'm not so sure.
    > 5. Do I need Netweaver Developer Studio for creating "bundled" libraries?
    >
    > Or can I copy the binaries in the WEB-INFlib-folder of my application, deploy it and use it?
    >
    You need the Studio. No way around that. [Edit:] Sorry, misunderstood you here: I thought you want to copy something into the deployed directory on the server! - Of course, any deployment method would do it and though copying binaries seems to be valid. However,  I'm checking this currently with development in detail.
    > 6. Is configuration of application-j2ee-engine.xml the right place to reference a third-party-library in a specific version which exists in WEB-INF/lib-folder in my application even if it exists also in another version on netweaver?
    >
    > => In the document "Troubleshooting: Finding Missing Parent-Child Relations" it says: "To implement the chain of parent-child relations in the deployment descriptor of the component, use either application-j2ee-engine.xml (for applications) or provider.xml (for libraries and services)."
    >
    > => "Creating standard libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f447a8d62b0484e10000000a155369/frameset.htm9 tells me, that I have to configure the file application-j2ee-engine.xml, too.
    >
    > => But in "Working with libraries" (http://help.sap.com/saphelp_nwce10/helpdata/en/44/f4e00e56ec0486e10000000a155369/frameset.htm) it says:
    >
    > "Standard libraries: These provide resources to all enterprise applications deployed on the server. They are packed in EAR files like the enterprise applications."
    >
    > => Does this mean, that I have to force Netweaver CE 7.1 to use a higher version of a certain third-party-library? Does this even work? Do all applications deployed on Netweaver 7.1 have to use this library in the higher version?
    >
    >
    >
    > It is really confusing to read through the documentation!!! Sorry for that avalanche of questions, but I really hope it will make the issue of using libraries (especially if they exist in different versions on the CE 7.1) a little clearer!
    >
    > Best regards
    > Bettina
    Could you tell me what you're trying to deploy? I'll try to get Georgi on this....
    Regards,
    Benny
    Edited by: Benny Schaich-Lebek on Nov 5, 2008 1:40 PM

  • Third-party libraries in a JSC team project

    We're using Sun Java Studio Creator 2 Update 1 (JSC) for the project I'm working on. This project uses a few third-party libraries (jar files). Up until 2 weeks ago I was the lone member of the project team and all was fine. Then we added another team member and encountered an issue with the 3rd-party jars. In particular, since I had setup the 3rd-party libraries using the "Library Manager" facility, I had no problems with building and deploying the app, but when my team member got the code from the version control system, he could not compile due to an error saying something like "library not found". I'm looking for a way to setup the 3rd-party libraries for our project such that those jars are found during compilation (and included in the WAR file) while at the same time new developers do not have to use the "Library Manager" to configure all the libraries on their JSC install. I tried adding the jars to the project's "lib" directory, but that did not work unless I explicitly listed them in the compile path (using "Project Properties") and this used a hard-coded path to the jars. I would rather not require that every project team member use the exact same disk path to our project so I do not like this approach either.
    Any suggestions?

    As a best-practice for creating projects for version control, the jar files should be added as jars and not in a library unless the library points to jars that are at a common location on the network. You can add a directory to your project from the "files" tab called something like "projectlibs". Then add the 3rd party jar files here. When you add the jar to the project, make sure you check the "package" column which tells Creator to package the jar with the deployment.
    Cheers!
    -David

  • About Third-party libraries..

    Hello,
    1) Is there any tutorial that shows how to use third-party jar files in our projects, step by step? I tried :
    *Tools/Manage Libraries, then created new in "User" directory, Selected my jar files in class path then used Tools/Project Properties/Libraries/Add Library and selected the one that i added in previous step.
    However when i type
    import packagename.* it marks it as GRAY and does not do anything.. ?
    2) If i add, does it encrypt and compress my third-party jar file in my Main jar file? Or do i need to make it read from external directory by my code?
    If it does not ecrypt, how can i avoid people using the library that i used in my project when i give them my software?
    Thanks..

    hi GlenX
    Could it be that your JAR file you refer to in (1) contains your "library JAR" as a JAR file?
    It looks like using a "Library File Group" in a "JAR Deployment Profile" includes the "library JARs" as JAR file in the new JAR file created by the profile. It is possible to add the contents of "library JARs" using a "Dependency Analysis File Group" in a "JAR Deployment Profile".
    see http://verveja.footsteps.be/~verveja/files/oracle/JarStuffThread615655-v0.01.zip
    In JarStuffThread615655-v0.01.zip I have included two applications, "Thread615655MyToolApp" and "Thread615655MyClientApp" with in each one project (to avoid confusion about project dependencies).
    The MyClient.jpr project has a "MyTool project library" configured, referring to "MyTool.jar".
    So, you could try this scenario ...
    (1) open Thread615655MyToolApp.jws in JDeveloper
    (2) select "Deploy to JAR file" on MyToolDeploymentProfile.deploy
    (3) open Thread615655MyClientApp.jws in JDeveloper
    (4) select "Deploy to JAR file" on MyClientDeploymentProfile.deploy
    (5) double-click the "MyClient\deploy\MyClient.jar", and see the "vSomeMyToolValue = some MyTool value" shown on the panel in the frame.
    regards
    Jan Vervecken

  • Using third party keyboards in native Apple apps on iOS 8

    Hello,
    I have an iPhone 5S, running iOS 8(and recently installed 8.0.2).  I was excited about getting to use third-party keyboards, but for some reason it is not working for me.  For whatever reason, I can use these keyboards (I've tried many, all to the same effect) in other apps such as Chrome or Facebook, but on any of the native Apple apps (Notes, Reminders, but especially Messages and Mail where typing is most needed) I am unable to select them.  In fact, the little globe you click and hold to make the different keyboards come up isn't even on my keyboard.  I've looked around a little and tried some fixes (uninstalling and reinstalling, deleting all other keyboards, restarting the phone, turning off AssistiveTouch, etc.) but have had no luck.  Has anyone else experienced this, and more importantly, has anyone found a solution?  I was hoping the 8.0.2 might address it but nothing has changed.
    Thank you!

    I'm having the same issue. IPhone 5S has third party keyboards working in safari but not other apps (8.02). IPad with 8.02 has them working everywhere. Any ideas?

  • Third party libraries for hibernate(jar files)

    Hi I am new in hibernate.I follow some steps of hibernate tutorial from
    http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
    In chapter-1 1.2.3. Hibernate configuration when i try
    java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    database should be started but it,s not
    most probably reason is also include third party libraries
    I try all but still not getting success.
    In command prompt I get ::
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\shobhitsingh>cd\
    C:\>cd hibernatet*
    C:\hibernateTutorial>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
    C:\hibernateTutorial>pl guide
    Regards
    -S.Singh

    I'm sorry.I used classpath in wrong manner.I got where I'm wrong.
    Regards
    -S.Singh

  • How to use third party library (like .dll and .lib files) in flascc?

    I have a number of .dll and .lib files of the  third party library, which are generated from C++ code.
    I read about flascc on other web site says:
    "If you want to use third party library in your Flascc project,you must have either the source code or the linkable file which is compiled of the third party library   "
    Dose the linkable file mean .dll file or .lib file?
    AND
    How can I use the fuctions in them in my flascc project.?

    Native code is not interchangeable between platform.
    It means that you can't use library that wasn't build specifically for flascc.
    And when they say linkable files they mean libraries compiled for flascc, not any libraries.
    So if your libs are for windows, no luck, you have to recompile everything

  • How to do XMLDSig using third-party JCA providers?

    Hi all,
    Can anyone please let me know how to do XMLDSig using third-party JCA providers? The Sun XMLDsig documentation says that "A JSR 105 implementation SHOULD use underlying JCA engine classes, such as java.security.Signature and java.security.MessageDigest to perform cryptographic operations", but it doesn't say how to define the JCA provider programmatically. I don't want to change the Providers order in the security.properties file.
    Do we need to make any changes in the JCA provider classes to work with XMLDSig and XML encrypt?
    I'd appreciate your help.
    Joe

      How to identify whether the third party app has registered URL scheme or not. I also send a request mail to the third party app developers regarding URL scheme, but there is no reply from them.

  • Convert word document in PDF,e pub,by using third party dll in Sharepoint designer workflow 2013?

    Hi,
    I want to convert word document to PDF,  EPub, by using third party (.dll).
    In SharePoint designer workflow in 2013.
    So that I have question, Can we Install third party (.dll) in SharePoint workflow Designer for conversion?
    Means I have created one simple application conversion of word to e Pub, PDF, Image by using (Spire.doc dll) in Visual Studio.
    So this same conversion I want to work in SharePoint designer workflows?
    So anybody has any solution then please provide me.
    Thanks,
    Samadhan

    it might be worth looking at these CodePlex steps, that plug directly into the Word Automation Services.
    http://sp2010wordautomation.codeplex.com/
    It'll provide you with a configurable step like the below that should help you achieve your aims
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to use Third Party DLL in Adobe Illustrator Plug In

    Hi Everyone,
    I want to design plug-in for Adobe illustrator CS6(64 bit). As first step I am referring sample plug ins from ../SDK/SampleCode. I am not getting how to use third party DLL in plug in.
    Please let me know how to refer C# DLL in illustrator plug in.
    Thanks in advance.

    There's no C# API for the Illustrator SDK, so your plugin must be C++ at the very least. That said, you can probably write a bridge if you need to call out to a C# library/DLL.

  • How can i telnet or get access to other LAN members in LAN without using third party software?

    I have admin access to the main  router in our LAN, so how can i telnet or get access to other LAN  members in LAN without using third party software?
    its linksys3500 router and  i login as admin using the gateway address in address bar..
    i  want to access the c drive of my colleague in same subnet in same  office and i know his ip address.but he not configured telnet accept  request.so without it how can i open his telnet port and access him

    I think you are using the wrong terminology. You can browse the hidden share of any pc if you know the ip and have a valid user account on the pc by typing in the following \\computername\c$ or \\ipaddress\c$ . It should prompt you for a user account. You may have to allow this through the windows firewall (or disable it completely).

Maybe you are looking for

  • Creating a board game

    I'm making a "board game" in Flash with Actionscript 3.0. When the player lands on a certain space, I want a window to pop up & they complete a word search game. The faster they complete the word search, the more points they would earn. I already hav

  • Oracle 9i OCA done ..wat next??

    hi all i had recently completed Oracle 9i OCP training in one of Oracle 9i training partners and also completed OCA (SQL (007) and Funda I (031)). I am currently searching for a job as a Jr. Oracle DBA somewhere in Mumbai or any part of India Could y

  • Drop Temporary Tablespace!

    Hi All, I have tried dropping my old temporary tablespace TEMP after making new TEMP2 as default. All the users (checked in dba_users) are using TEMP2 as default temporary tablespace. Now, issue is when I am trying to take TEMP offline and dropping i

  • Import stickies from Panther to Tiger

    Hi, Yesterday my iBook G4 [10.3.9] crashed and the data was then backed up to a portable harddrive by helpdesk in an apple store. Then, the Tiger was installed as new OS. Now I cannot retrieve my original stickies content. I tried to find something a

  • Can't delete default TOC

    I created a new RH project and it created a default TOC. Then I created a new TOC and I can't delete the default one and that's the one that keeps displaying. Any ideas? Thanks. DC