How to Call third party Jar into Application

Hi Can any Expert help ?
I want to put third party Jar into my application but i have some problem occur.
1. how to call jar with parameter in application ?
2. when i exit the third party jar task, it will exit my main task too. How to set my main tast exit stats standalone ?
3. I have over 10 jar files in one application, how can i set a classpath for client to call JNLP, instread of load all jar to client before run.
Thanks.
Sanki Poon ([email protected])

1) Sounds like you are trying to launch the third party from it's application main instead of using it as an API How does your code interact with it or is that not important?. You don't call a jar, you load a class. You could use a exec http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html to run the java launcher and pass it all it's command line stuff(But this may not be possible security wise via WebStart).
2) if it is launched in the same JVM and it calls a System.exit there is nothing you can do about your app closing too. It would need to be in another instance of the JVM
3) Under the resources tag you can have as many jar tags as needed.
    <resources>
        <j2se version="1.5.0" java-vm-args="-esa -Xnoclassgc"/>
        <jar href="/jsf-wita/apps/MathMLWebEditor.jar"/>
    </resources>

Similar Messages

  • How to package third party jars into an ejb application?

    Hello everyone, thanks for reading...
    Does anybody can give me any hints or directions on how to include inside my .ear or .jar all the dependencies of all my EJBs?
    I need to deploy inside my ejb.jar or application.ear all the dependencies. The thing it's that I have a services-ejb.jar and it depends on several jars: services-api.jar, services-util.jar, ws-client.jar, etc.
    I read somewhere that these jars should be inside the META-INF/lib directory inside the ejb-jar. Is this correct?
    I deploy to Oracle Application Server and I'm using EJB 3.0.
    Thanks in advice.

    IDE and Maven have nothing to do with it.
    You need to look at your Oracle AS docs and put the 3rd party JARs in the directory where it expects to find them. I don't know where that is. Most Java EE app servers are different. WebLogic uses an APP-INF directory at the top level of the EAR file. I don't believe it's a Java EE standard. There's more variability in EAR arrangements than there is for WAR files. Those are standard.
    %

  • ADF mobile: How to pack a third party jars into apk

    Hi Expert,
    I am using Jdeveloper + ADF mobile 11.1.2.4 to develop an android application. In this application, I need to call some functions in the third party jar files.  I need to add the third party jars into my apk so that those classes can be found during runtime.
    I followed section 17.1.1.1 to add the libraries into my project. However, after I deployed my app to the emulator and tried to run it, it reported "encountered error: classes not found". And I also found that the third party jars don't exist in libs/ directory of the apk. Do you know how to solve the problem: How to reference a third party jar files in my app and make sure it works?
    Thanks,
    Yan

    Create a /libs directory within  Android project directory and copy the JAR files to /libs.
    To build.properties add
    external.libs.dir=libs

  • How to include third party .jar files into my jar file

    Hi,
    how do i include a open source third party jar file into an executable jar?
    i have a class called BlogBox.java and it uses org.apache.commons.net.ftp.FTPClient, i want to create an executable file, where do i put the .jar file containing FTPClient aka Apache Commons Net?
    currently i'm getting the following error from when executing my BlogBox.jar
    C:\MyJava\BlogBox>java -jar BlogBox.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/net/ftp/FTPClient
    at blogbox.BlogBox.<init>(BlogBox.java:27)
    at blogbox.BlogBox.main(BlogBox.java:103)
    Any suggestions? i have searched google and this forum but could not find the solution to my problem, thanks
    [edited msg] do i need to add the classpath at execution or something of the apache commons net library?
    Message was edited by:
    gekkokid

    When you use an executable jar the normal class path
    is ignored, but you can put a classpath inside the
    jar. The usual trick is to place the library jar
    files in a directory inside the application directory
    and direct the manifest file to it. The manifest file
    live in the jar inside the META-INF directory and
    it's called manifest.mf
    The two heavilly used entries are Main-class: and
    Class-path: lines. Class-path just has a
    comma-separated list of library paths.
    The jar utility has a special option to load it up.Thanks :) I created a "/lib" directory, placed in the packages in there and redirected the Class-Path: lib/commons-net-1.4.1.jar
    and it works,
    thank you everyone :)

  • How to add third-party jar in CRM ISA application?

    Hello SDN!
    I need to add third-party jar in CRM ISA application. I know how to add such jars in common case and for local DCs. But for CRM I can't determine which DC should contain this third-party jar.
    Please tell me ASAP which DC (e.g. crm/isa/home/ext) I should use.
    Help will be appreciated.
    Regards, Lev.

    Hi,
    To add third party jar you need to create new DC which contain your third party Jar. Once you have new DC with your Jar file you can add as Used DC in required DC.
    Please refer [Using External Libraries for Development with NWDI|http://help.sap.com/erp2005_ehp_04/helpdata/EN/46/3ce3e4df201d63e10000000a11466f/content.htm] for more infromation to create DC with Jar File.
    eCommerce Developer.

  • How to call third party validation service from self service page

    Anyone can help me out on what needs to be done to call third party address validation service when button "Next" Personal Information page of Employee Self Service is clicked.
    1. Writing Custom XXXAddressUpdateCO by extending AddressUpdateCO. XXXAddressUpdateCO's processFormRequest will validate the address using the third part service. This third party address validation service is in the DB where Oracle Apps is there.
    To use this service from the controller, how can I set the new application module XXXAdressUpdateAMImpl where I will make call to this service and return the result yo Custom controller class.
    Any suggestions?

    If your page does not have LOVs, then you can extend and substitute the AM. Thereafter include the code to invoke the third party validation from the AM.
    Otherwise you may need to write the invoking code in the Controller itself.
    Hope you got some clues. Let me know if you need more information.
    Thanks
    Sumit

  • Plz suggest me How to use Third party jar files in ODI

    Hi all,
    I need to know how to use the third party jar files or our own customised jar file in ODI.
    regards
    palash

    Hi all,
    I am unable to implement..................
    I have one question, if I add any type 4 coneection supported jar file in my ODI_CLASSPATH can I use them in writing procedure to connect Databases
    I am trying to connect Oracle database by putting Ojdbc14.jar in the class path of ODI_CLASSPATH so that in my procedure I can use it .............but failed I dont know how to solve this problem.
    another thing Open Tools are delivered as a Java package (.zip or .jar) containing several files:
    A compiled Java .class file
    Other resources, such as icon files is it so ..............Then I can use full java apllication by preparing required bunch of classes and by set them appropriately in open tool
    need ur suggestion....
    regards
    palash

  • How to add new third party jars into JDev - quick question

    Hi All
    We have some additional jars needed to include for use with our current ADF application.
    These jars are not for ADF components.
    These jars are for API calls to other 3rd application.
    We're using standalone weblogic to run our ADF app.
    How do we include our 3rd party jars in JDev ?
    Do we need to include new paths in standalone WLS to pick up these new 3rd party jars in order for our app to work ?
    Thanks

    You can add libraries to WLS classpath, but this is not good approach if you need to replace them later(because you must restart WLS to pick new version)
    To include jars to ADF deployment, open Model or ViewController project properties and include path(s) in Project Source Paths->Java Source Paths.
    Then edit your deployment profile (right click on application -> Application Properties... ->Deployment -> Your Deployment Profile), go to Application Assembly and mark these libraries(also, for each library you can specify target folder, for example "lib")
    Dario

  • How to call third party software from Ecc6 using ABAP

    Hi all,
    I need to execute a third party software using abap coding .
    The software converts doc to pdf, the input from ecc6 would be the file path.
    I need to do this using ABAP.
    thanks
    ziv.

    Hi Ziv
    You can use METHOD cl_gui_frontend_services=>execute
      EXPORTING
        application            = <<<.exe file>>>
        operation              = 'OPEN'
    to run .exe files
    Best Regards
    Yossi

  • How to install third party fonts into Photoshop CS6 cloud?

    Hi, in need of assistance.  My previous version of PhotoShop was CS5, and I have my photography logos created using the font "chisel thin".  Now that I have a new macbook pro laptop and am also now using the cloud version of PhotoShop CS6, when I open my saved logos on the cloud, it does not recognize the font "chisel thin"?  So, is there a way to download the "chisel thin" font so it is available for me to use on the cloud?  If so, how do I go about doing it?  I'm not super tech savy, so clear, exact detailed instructions on how to download / update the "chisel thin" font would be very much appreciated!
    Thanks for your help,
    Mike (McDermott Photography)

    Thank you Jeff.
    Welcome to the forum McDermottPhotography,
    You will need to download and install the ttf (true type font again) on your new machine. I am not sure if the following is the font that you are referring to, but here is one named similiarly http://www.fontpalace.com/font-details/Chisel+Thin+Normal/. 

  • Call third party Executable file.

    How to call third party executable file from SAP as a modal.
    I have a drum filling system. I want to call executable file of drum system which take a weight from instrument and write a text file. After completion of this SAP will read that text file and write it to screen.

    the best way to do it is using RFC (remote function call)
    your drum tool should be compatible in order to do it
    if not you can still send a command to operating system in order to execute your tool but this is a second choice

  • How to use  third party package in java application

    hi, i am a student , new to java world can any of u tell me how to import third party package in our java application.
    i want to know how CLI is done in java.
    i am going thru this link http://www.codezoo.com/pub/component/5574
    not able to get anything.
    please please help me

    There are two steps -
    1. Import the classes you need from the package(s) using the Java import statement in your classes that need access to them.
    2. include the 3rd part code (one or more .jar files and/or root directories holding the code's package tree and .class files) to your javac and java class path and optionaly to the class path found in your .jar's manifest file.

  • How to include a third party component into a netbeans project

    I am working in netbeans 5.0 and i want to include a third party component into my project.I have the jar files of a text editor ie FCK text editor.Could anyone tell me how to include the component into my project

    - Put the jar file on a location you want (the location must be the same for all developers).
    - Select the "Libraries" node of your project.
    - Press the right mouse button to bring up the popup menu and choose "Add JAR / Folder..."
    - Locate and select the JAR file you need and press OK.
    - Now you have included it into your project.

  • How to hide url of third party external/partner application

    I have a third party external oracle application arcims by the esri corporation that I have on a test portal.
    It has it's own password authentication. In order to have sso work i have to turn off its password request.
    The problem is that the URL address shows in the portal. Anyone could simply type in the URL and access the application directly and bypass the portal login. Can One hide or wrap the URL in portal? If so HOW is that done?

    Since you'va already made Java non-portable by using Runtime, you're probably bbest off using the OS's capabilities to find the program's path.
    If the 3rd party program was always contained in Java's classpath list, you could use Class.getResource().

  • Problems with the ActiveX bridge for Java beans when using third-party .jar

    I encountered the following problem when using the ActiveX bridge for a java bean:
    I am using JDK 1.4.2_09 and MS Visual Basic 6.0 (SP6). I wrote a java bean called ProcessViewer (my class ProcessViewer inherits from JComponent and implements the interfaces Serializable and AdjustmentListener) which I would like to use within a VB 6.0 application. I used the ActiveX bridge (packager.exe) to generate a DLL (ProcessViewer.dll) and registered it successfully. The java bean GUI-control works fine within my VB 6.0 application unless my java bean (ProcessViewer.jar) uses any third-party .jar files.
    But when I tried to add a reference to some third-party class (com.sap.xxx.xxx....) I got some problems. I could solve the problem with packager.exe by setting the correct CLASSPATH. But at runtime my VB 6.0 application does not work. It crashes or it reports an error like this: "The control ... could not be loaded from axbridge.dll" (although I deployed my .jar file correctly to the directory C:\Programme\Java\j2re1.4.2_09\axbridge\bin and lib). Setting the CLASSPATH environment variable before calling my VB 6.0 application (exe) did not solve the problem.
    How can I teach my VB 6.0 application (containing the Java bean ActiveX control) where to find the third-party .jar file? Copying the third-party .jar file to the JRE lib-folder or to the axbridge\lib folder did not solve the problem either.
    I studied the documentation about the ActiveX bridge given at:
    http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html
    but I am missing informations on how the third-party .jar files can be found during runtime of the ActiveX container (e. g. a VB 6.0 application).

    See how to solve your problem with JNI:
    http://codeproject.com/cpp/OOJNIUse.asp
    More examples (for SWING) in tools setup:
    http://www.simtel.net/product.php[id]95126[SiteID]simtel.net
    http://www.simtel.net/product.php[id]94368[SiteID]simtel.net
    http://www.simtel.net/product.php[id]93174[SiteID]simtel.net

Maybe you are looking for

  • Preview instead of Illustrator 10

    Was working in Illustrator 10 last nite on several files and, on looking back into the project folder, found that some, but not all, of the files had a Preview icon and .pdf suffix instead of Illustrator and .ai. I definitely did not save the files a

  • Good information for anyone using Flash Catalyst CS5 !!!

    I am using FC_CS5 and I am a huge fan and can not wait for the next version to come out. I have already maxed out the potential of this program and I have noticed many other people having the same problem that I had when it comes to not being able to

  • Losing songs?

    I recently had to replace my hard drive, so fortunately I backed up all my songs onto DVDs. I haven't yet moved all my music from the DVD onto iTunes, but I did purchase 2 new songs. I believe I was running iTunes 5 when I bought those. I just update

  • How can I speed up my iPad2?

    My ipad2 takes about a minute to boot up. Also, mail can take minutes to finish sending.  Hangs for ages. Trying to minimise number of apps running in background. To no avail. Thanks

  • Where can I safely download flash player to watch video on Mac?

    I just got a Mac Pro laptop and I can't watch any video unless I download a flash player,  I want to know which flash player is safe to download.