External JAR import

Hello

I am trying to import the pre-audit ksoap2 JAR file in my Application.

I created a library of Blackberry project in my workspace, added the JAR file to the path to build this new project and made my Application project to depent on this library project. All build and run works without problem.

Now, I'm trying to access the library of a class for my Application project via ' import org.ksoap2. * "and Ecplise is not the Library.If, but I add the JAR file to the path to build my project request too, it works but the Simulator says"Module ksoap2... not found ".

Any ideas?

Thank you

hhessel

You will probably have to convert the jar file in a cod at some stage to install on the device and/or Simulator.

Until then, rather than doing the thing in the library, I think that you can simply include the pot when generating for projects that reference.

To include a jar in Build, select the tab generate to the project properties and add the jar in the 'imported jar files.

I use this approach for all my libraries shared - they have a workspace that is unique, and each application is important just the pot.

Not sure if this is the best way, but it seems to work for me.

Tags: BlackBerry Developers

Similar Questions

  • Try to include external jar in Eclipse IDE, but it does not work

    Hello world

    I try to use the BB for Eclipse plugin.  I saw the other posts in the same direction as mine, but nothing seems to solve the problem or the person was referring to an older version of the plugin.  I try to include a jar named J2meMap_lib_cldc11.jar.  Here's what I've done so far:

    I created a new Blackberry project called J2MEMap.

    I right-click on the project and select Properties.

    I go to the Blackberry project properties. Click on the Application tab.

    Under Project Type, change in library.

    Then, I go to the Java Build Path.

    I go to the library and add the jar as an external library file.

    Click OK.

    Then, I create a new Blackberry project named MyApp.

    For this one, I'm doing a moped.

    In the Java Build Path, I add the J2MEMap project as a project dependency.

    First thing I notice is that MyApp has compilation errors because he doesn't seem to find the jar file in the other project.  If I look in the Console of the Blackberry manufacturer, I see the following error when I Isaiah to compile the J2MEMap project:

    C:\programs\opensource\eclipse\plugins\net.RIM.Eide.componentpack4.5.0_4.5.0.16\components\bin\launcher.exe C:\programs\opensource\eclipse\plugins\net.rim.eide.componentpack4.5.0_4.5.0.16\components\bin\rapc.exe-silencieux import =...... \.. \.. \.. \.. \programs\opensource\eclipse\plugins\net.rim.Eide.componentpack4.5.0_4.5.0.16\components\lib\net_rim_api.jar;...... \.. \.. \.. \.. \programs\opensource\j2memap\sdk\cldc11\J2meMap_lib_cldc11.jar library =... \J2MEMap\J2MEMap warnkey = 0 x 52424200; 0 x 52435200; 0 x 52525400 - sourceroot = C:\Local\develop\eclipse\workspaces\psu\J2MEMap\src C:\Local\develop\eclipse\workspaces\psu\J2MEMap\bin
    Error! : not found of course
    CAP has failed for the project J2MEMap

    Previously, I did not receive this error, but I began to acquire a reason any.  I am able to generate the Midlet example that comes with the JDE and deploy and run on the Simulator.  For some reason, I can't get libraries to work properly.

    Thank you

    Eric

    In fact, I thought that I'm answering my own question in case someone else has the same problem.  In the library project, I had to go to the project properties and go to the Import/Export, and then select the external jar as one of the elements that must be exported.

    Thank you

    Eric

  • External JAR and run the Script

    It is a way to use external jar (Drools) in run script step? Alternatives?

    Thank you

    You can use external jar files in LiveCycle along with other java web applications.

    1. place your JAR file in the application's lib directory.

    for example c:\jboss\server\all\lib

    2 import the package within the ExecuteScript activity and start using classes.

    Nith

  • "Error starting Module not found" add external jar to eclipse plugin

    Hello

    I use the eclipse on Eclipse 3.4 plugin

    BB JDE 4.5

    8300 Simulator

    I'm trying to run a Midlet that sucessfully runs in eclipse for another smartphone (Samsung).

    The project compiles fine, but when I run it in the BB Simulator, it gives me the error:

    "error at startup MyApp: Module ' kxml2 - 2.3.0' not found."

    I added a jar for kmxl in the form of external jar file.

    Sometimes it get lost, don't know why. I had to add the jar file several times because once so that it cannot compile and it disappears from the list of libraries.

    In any case, the major problem is that he cannot run in the Simulator.

    I found several posts with the same problem, but the solutions they gave are JDE, not eclipse plugin.

    These solutions were to create a new project, made a library of BB and understand the project as a dependency in the main application.

    But how to solve the problem in plugin eclipse?

    Why add a pot as an external library is not enough?

    Why get lost from time to time?

    If we are to create a new project (it seems excessive to me thinking) how can we define everything in eclipse?

    Thank you

    Anna

    Check this thread.

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=22240#M22240

    Concerning

    Bika

  • External JAR & Eclipse plug-in 1.3

    Hi all!

    seriously, I want to use the new plug-in for eclipse but I can not find a solution for the external JAR problem:

    I need to use the library of ksoap2, so, as explained in different post, I created a library project on Eclipse with version 1.2 of the plugin, I added the previously verified JAR and then I reference it projects where I use it.

    It works very well in previous plug-ins but it don't work with the 1.3:

    -If I use the 1.2 method, when packaging project I have a strange error of class of the two copies on the first class from the jar of ksoap2 (that is not duplicate)

    -If I use the pot of ksoap2 as external JAR or library for my project, I can all packing but when I run my application, the pot is not loaded...

    Anyone know if something changes in the plugin?

    Thank you for any idea!

    Hi all

    I ask the support of blackberry and they give me a response.

    I post here if someone will need:

    "

    This error message occurs when an external JAR is created in another version of the IDE. The reason is because that control cap, when your application is compiled, compile everything in the folder of generation, including the previously compiled JAR file. This seems to be a bug in the tool itself, and there are a few references to this question in the BlackBerry Developer Issue Tracker below.

    BlackBerry Developer Issue Tracker

    https://www.BlackBerry.com/JIRA/

    Moving forward, the current solution to this issue is to have the JAR file built in the same version of the BlackBerry Java plug-in for Eclipse, you build your current application to breast. This is probably why you have not seen the issue in the previous iteration of the plug-in. This leads me to believe that the POT has been compiled in version 1.2 before.

    "

    I'm looking for the source code of ksoap2 and create a project, so I can use it as an external referenced project.

    Now, all work.

    Hope it will be useful

  • How to add external jar file?

    Hi all
    1. work on the version of BB storm (9500/9530 Simulator) is v4.7.0.75
    2 opportunity BB JDE v4.7

    4. the request is:

    My application needs commans - httpclient.ja.

    If I add external jar file.

    application throws the runtime as error

    module "Commons-httpclient ' not found."

    My request is here:

    is it posible to add external jar file in blackberry?

    If so, how do I add external jar file?

    can any body help me on this point, because I am doing this for the first time

    Thanks in advance

    Abreu - Bureddy

    File JAR of Th which tent has class files not getting recognized by BB Jvm.

  • Add external JAR to the Jdeveloper SOA composite project

    Hi experts,

    I work on Jdeveloper and want to liaise with the IOM for details on Benerficiary in a SOA compsoite. To start the connection, I added more code in Java Embedding task

    And I need to incldue JPS - API.jar in incldued in the project. I followed all means possible such as libraries-> add Jar/adding.

    But during the compilation of the project, it gives a compile error. When I remove the lines of code in project below, he starts again compile successfully. How can I bring an external jar to the buildpath of Jdeveloper.

    Please suggest

    ctx = oracle.security.jps.JpsContext

    oracle.security.jps.JpsContextFactory.getContextFactory () .getContext ();

    oracle.security.jps.service.credstore.CredentialStore cs = final

    ((oracle.security.jps.service.credstore.CredentialStore) ctx.getServiceInstance)

    oracle.security.jps.service.credstore.CredentialStore.class);

    CMap oracle.security.jps.service.credstore.CredentialMap = cs.getCredentialMap ("oracle.oim.sysadminMap");

    cred oracle.security.jps.service.credstore.Credential = cmap.getCredential ("sysadmin");

    If (cred instanceof oracle.security.jps.service.credstore.PasswordCredential) {}

    oracle.security.jps.service.credstore.PasswordCredential = (oracle.security.jps.service.credstore.PasswordCredential) cred pcred;

    Char [] p = pcred.getPassword ();

    oimUserName = pcred.getName ();

    oimPassword = new String (p);

    Copy the jar in \SCA-INF\lib

    -Marie

  • Property lastModified of file in archive external JAR

    How can I approach this problem? Need to access a file located lastModified property within the archive external JAR.
    Thanks in advance.

    800812 wrote:
    My problem is to get the time elapsed between in the JAR of archives and outside the jar of archives for the same file (it's inside the POT). I get different timestamps as seen, and that's my problem.
    Your code displays the formatted output, but I need the time until the last ms.

    Zip file format Specifies a resolution of 2 seconds. You can't get the precision in milliseconds since a zip or jar file. It is precisely not to be there. This isn't a Java problem.

  • An Extension using an external JAR file

    Hey,.
    I read this blog entry:
    -[http://blogs.oracle.com/jdevextensions/entry/adding_exteneral_jars_to_an]
    and the thought that maybe that is it, but unfortunately will only work if the jar is deployed with the installation of JDeveloper.
    I use in my extension jar files that I made myself, and even if I can get around this problem my copy just jar files to hand to the place where they are supposed to be, if I export the extension, it will not work on other PC.

    So what I need to do, it's somehow include the jar file in the deployment. I tried to add a new group of files for the libraries in the deployment window, but unfortunately, that has not helped at all.

    Thank you for your time and I hope someone can help me.

    Couple of things possible.

    It is probably just a thing of packaging in the forums, but make sure externally: part is all on the same line as the Bundle-Classpath entry.

    Also remove the space between the "external: ' and the ' $ORACLE_HOME$".

    One last thing, is in the previous post, you got the mon.jar in a 'test' under extensions folder.. In this example, it seems you are trying to call it directly from the Extensions folder.. This could be the main issue.

    Let me know if these elements help at all.

  • External SWF imported successfully, can not put it in the video

    Hi all

    I started to learn AS3 and little by little getting used to trying to get external swf in video clip.

    SWF target successfully imported and staged, when I post what I see swf target plays.

    ------------------------------------------------------------------------------------------ ----

    import flash.display.MovieClip;

    var BGLoader:Loader = new Loader();

    var BGurl:URLRequest = new URLRequest("HomeBG.swf");

    BGLoader.load (BGurl);

    BGLoader.y = 0;

    BGLoader.x = 0;

    addChild (BGLoader);

    ------------------------------------------------------------------------------------------ ----

    As a next step, I want to put the swf in the video and get more control, but when I publish below only I see is a background empty, without any error.

    ------------------------------------------------------------------------------------------ ----

    import flash.display.MovieClip;

    var BGLoader:Loader = new Loader();

    var BGurl:URLRequest = new URLRequest("HomeBG.swf");

    BGLoader.load (BGurl);

    BGLoader.y = 0;

    BGLoader.x = 0;

    addChild (BGLoader);

    var animMC = MovieClip (BGLoader.content) .getChildAt (0) as MovieClip;

    addChild (animMC);

    ------------------------------------------------------------------------------------------ ----

    Missing something?

    Any help would be appreciated, thanks.

    You cannot access Loader.content after load completed successfully.

    Try this,

    import flash.events.Event;

    var BGLoader:Loader = new Loader();

    var BGurl:URLRequest = new URLRequest("HomeBG.swf");

    BGLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler);

    BGLoader.load (BGurl);

    BGLoader.y = 0;

    BGLoader.x = 0;

    addChild (BGLoader);

    var animMC:MovieClip;

    function completeHandler(event:Event)

    {

    animMC = event.currentTarget.content;

    addChild (animMC);

    }

  • Can Eclipse 1.1 I add external JAR library part 3-d?

    I thought that it would finally be possible to add third-party 3D libraries for the project using the latest plugin Eclipse 1.1

    I tried to add a library and the generation of project (just like with previous versions), but it does not work on the emaulator. I get IllegalArgument exception and it basically says that it cannot find the module that I try to use (class name) of the library.

    Thank you!

    Open the Java Build Path, then go in the tab order and export and export the third pot by checking the box in front of the pot.   Rebuild and let me know if you still receive the error "module not found".

    It must be valid for a JAR file created outside the BlackBerry Java plug-in for Eclipse (not a BlackBerry library project).

    If the JAR file is another project of library of BlackBerry, you will need to install the COD file for this library on the smartphone BlackBerry (Simulator) before running your application.

  • Application of ADF incapable of external jar deployed as a reference library

    I use jdeveloper 11.1.1.3.
    My problem is as follows: I have a POT deployed in weblogic 11g as a library and I want that my demand for ADF back as this developed in-house library has a few utility methods in it.
    In my ADF application I've referenced to the library in weblogic application. XML as below...
    < library-ref >
    < name of the library - > beansCBB < / library name >
    < / library-ref >

    But still my my jsp fail to compile

    Please guide me on how to provide the library reference everything in deployment.

    --
    Zitouni

    You have created the manifest file and creating the library which is deployed as a shared library?

    Look at the following blog post - which explains step by step with a sample:
    http://andrejusb.blogspot.com/2010/07/deploying-ADF-applications-as-shared.html

    Thank you
    Nini

  • Need for external to Facebook, Twitter and linked in jar file

    Hi all

    Can someone tell me where I can get the external jar file or SDK for Facebook, Twitter and LinkedIn?

    I use OS 5.0. If any got related package that please send it through '[email protected] '.

    Thank you

    Neeraj Chauhan

    the facebook sdk is available at http://us.blackberry.com/developers/started/facebook.jsp

    for twitter, you can use twitterme with xAuth.
    oAuth also seems possible, see http://supportforums.blackberry.com/t5/Java-Development/twitter-integration/m-p/1345335#M176988 etc.

    don't know any api of the linked in.

    You can also use the search feature to find answers to questions like that.

  • ODI-error when importing jar file

    Hi all

    We need in ODI where we need to sort the files based on timestamp. I wrote a java code for this and created a jar it. After that, I did the procedure in my local ODI below.


    I m using ODI 11 g and jdk 1.6

    1. place the jar file in the D:\oracle\product\11.1.1\Oracle_ODI_1\oracledi\agent\drivers folder
    2 restarted my Agent
    3 created a logical schema under Java BeanShell physical technology
    4 creates a procedure and has done the procedure in below.
    (i) chosen Java BeanShell as «Command on target» technology
    (II) associated with the logical schema (created in step 3).
    (III) in the tab order that I wrote the code below

    com.file import. *; It's the package structure in the jar
    FileMergeUtil f = new FileMergeUtil (); It's the class
    f.Filesort (); This is the main method


    After completing the steps above, I tried to run this procedure and I got the below error

    java.lang.NullPointerException
    at com.sunopsis.sql.SnpsConnection.isTerradata(SnpsConnection.java:1172)
    at com.sunopsis.sql.SnpsQuery.getPreparedStatement(SnpsQuery.java:959)
    at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java:1872)
    at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java:554)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeQuery(SnpSessTaskSql.java:3078)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrdersScriptingOder(SnpSessTaskSql.java:1214)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2762)
    at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2515)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:534)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:449)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1954)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ 2.doAction(StartSessRequestProcessor.java:322)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:224)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:246)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$ 0 (StartSessRequestProcessor.java:237)
    to oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$ StartSessTask.doExecute (StartSessRequestProcessor.java:794)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:114)
    to oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$ 2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Some can help solve this problem?

    Thank you
    John

    Hello

    Must be 'Java BeanShell' technology?

    What I do is use the "Jython" technology So before you import the jar, import bones. Also remove the ';' at the end of your lines.

    For example:

    Import os
    import HTTPUtil - class

    point endpoint = "#REQUEST_URL."
    data = " < %="odiRef.getSchemaName" (« logique »,="" « w")%=""> data.xml".
    output="<%=odiRef.getSchemaName ("LOGIQUE","D")%>/data.csv"

    a = HTTPUtil.HTTPRequestPoster () - method
    a.postData(data,endpoint,output)

    See you soon

    BOS

  • A Package Import could not be resolved. Caused by the constraint that is missing in the bundle constraint: Import-Package: com.vmware.vim25.mo; version = "0.0.0" &gt;

    For vSphere Client Web plugin, I created a Service of java, I try to create a store of data to the ESX host using JAVA VI... I have included

    import com.vmware.vim25.*;
    import com.vmware.vim25.mo.*;
    

    the files in the service implementation and included external JARS to STS environment and created a function to list all hosts

    public List<String> listVcHosts() throws Exception{
        ManagedEntity[] hosts = new InventoryNavigator(rootFolder).searchManagedEntities("HostSystem");
      List<String> listHosts = new ArrayList<String>(); 
       for( ManagedEntity me : hosts ) {
           HostSystem host = (HostSystem) me;
           //Adding the list of hosts in List
           listHosts.add(host.getName().toString());
       }
      return listHosts;
    
       }
    

    When will execute as JAVA Application of STS his works fine without the caveats...

    I copied JARS in file server/Pick-up and try to deploy services in VIRGIN...

    His throw

    An Import-Package could not be resolved. Caused by missing constraint in bundle <com.xx.xxx.xxxx_1.0.0>
                 constraint: <Import-Package: com.vmware.vim25.mo; version="0.0.0">
    

    As I said above "it is covered by the use of 3rd party java libraries.

Maybe you are looking for