How can i include .so files in an executable .jar?

Hi,
I need to some native libraries to run my app. I want to put this .so files into a jar file.
With a shellscript i can set the java classpath, but i need to have only the jar file. If anybody know what do i do to java search the files into a directory specified by me (a directory compressed into the jar file) please help me!
Any help is wellcome.
Thanks. Bruno.

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html#210
http://java.sun.com/products/javawebstart/download-spec.html
You create a jar file containing JUST the native resources (i.e. the .so file).
You add a <nativelib > element to the JWS file wrapped in a "<resource os="linux" arch="x86">" tag (I think, not done in some time, check the links above).

Similar Messages

  • How can I add image files to a executable jar file ?

    Could you tell me how can I add image files to executable jar file ?
    package structure:
    ../com/Main.class
    ../images/..

    Please don't cross post, and read this
    http://forum.java.sun.com/thread.jsp?forum=31&thread=271751
    I've answered the question in the New To Java thread.

  • How can i include a file in my JSP

    hello i have one jst who need to use an instance of a class called Part I need to include that file in my JSP but How do i do that
    How do i import my Part.java class in my JSP ???

    At the top of your JSP:
    <%@ import="package.*, package.Class" %>or you could do this:
    <%jsp:useBean class="package.Class" id="CLASS" scope="page" />or you can use a servlet as an include and have it write HTML back to the JSP:
    <jsp:include page="MyServlet">
         <jsp:param name="PARAM1" value="data1"/>
         <jsp:param name="PARAM2" value="data2"/>
    </jsp:include>

  • How can i include the file, not xsl file, to xsl ?

    Hi,
    I would like to include a file called 'head.inc' to xsl. How can i do that ?
    the content of the head.inc is simple, just a part of the html code.
    say:
    <html>
    <head></head>
    <body>
    i can't use <xsl:import /> or <xsl:include />, which tag i can ??
    Thx a lot !

    You could use the document() function to access it. But it would have to be a valid XML file, XSL doesn't allow you to risk including a fragment that might cause the result to be invalid XML. Which could happen with your example. Remember that XML and XSL work with elements, not with tags.

  • How can I include a file in a servlet?

    I need to include a header file in htm format and a footer as well. My question here is, is it possible to include these files when a servlet is executed? like in the cases of the jsp web apps, with the <%@include file = "header.htm"%> tag... please let me know and thanks in advance.
    Regards

    Use RequestDispatcher.include:
    RequestDispatcher rd =
    = this.getServletContext().getRequestDispatcher(url);
    try { rd.include(request, response); }
    catch (Exception e) { "Error : Dispatch includeError
    : " + e); }Where url is the relative url of the HTML file.Hi, thanks for your answer, I still having a problem there, I used the RequestDispatcher.Include but it didn't show the file this is the code I'm trying to use:
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    OutputStream out = response.getOutputStream();
    RequestDispatcher rd = this.getServletContext().getRequestDispatcher("/form.htm");
    try {
    rd.include(request, response);
    catch (Exception e)
    System.out.println("Error : Dispatch includeError : " + e);
    try {
    IntervalCategoryDataset dataset = createGanttDataset();
    System.out.println("Total Categories: " + dataset.getCategoryCount());
    System.out.println("Total series: " + dataset.getSeriesCount());
         JFreeChart chart = ChartFactory.createGanttChart("Activities for F3319G1", "Activity", "Date", dataset, true);
    response.setContentType("image/png");
         ChartUtilities.writeChartAsPNG(out, chart, 800, 600);
    catch (Exception e) {
    e.printStackTrace();
    System.err.println(e.toString());
    finally {
    out.close();
    This servlet gets an image.. so the ContentType is set to "image/png" I don't know if this is causing the problem in such case what would I need to include an html or htm file in this kind of servlet? thanks in advance.
    Regards

  • How can I include additional files to the backup?

    I have a partition for MAC OS 10.8 an other for Windows and a third for the data.
    Time machine works fine for the first partition but I would like to include the third.
    Is this possible?
    And what is the procedure?

    Is there a way to use time machine to back up data accessed by Winows 7?
    Sorry, but no.
    You might want to take a look at a similar application for Windows called Genie Timeline Pro
    Genie Timeline Pro | Overview | Time Machine Backup Software for ...

  • Include command line args in executable jar?

    Hello all,
    I'm trying to package up some software which takes 2 command line args to run (for example, java -jar prog.jar FooBar 3.14159). I'm using a utility called Jar2Exe to wrap it up into an exe (still needs JRE to run, but it's nicer packaging for distribution).
    My question is, how can I included command line arguments in the jar? Or can I? Or, are there any exe-wrapping utilities out there that will allow me to accomplish this?
    Thanks,
    -Thok

    Thok wrote:
    Hello all,
    I'm trying to package up some software which takes 2 command line args to run (for example, java -jar prog.jar FooBar 3.14159). I'm using a utility called Jar2Exe to wrap it up into an exe (still needs JRE to run, but it's nicer packaging for distribution).
    My question is, how can I included command line arguments in the jar? Or can I? Or, are there any exe-wrapping utilities out there that will allow me to accomplish this?
    Thanks,
    -ThokOkay, did some more research... It appears you can't specify command line options in a jar, but if you package it into an exe, you can--depending on what utility you use to wrap it, that is. I downloaded a free one (Launch4j) and it does the trick.
    -Thok

  • My laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    my laptop was stolen and with it my itunes, all of my music (including non-apple downloaded content) is still on my iphone 5, how can I transfer the files to my new laptop which is authorised to the same apple ID?

    See this user tip for recovering the media from the iPhone: https://discussions.apple.com/docs/DOC-3991

  • How can i include Services and Bindung in a generated WSDL file?

    Hi,
    i what to use a generated wsdl file from an erp system, to build a web service client with WSDL2Java (org.apache.axis.wsdl.WSDL2Java).
    I noticed, that services an bindings are missing, also a policy is included.
    How can i include services and bindings in the wsdl and exclude the policy?
    Thanks!

    well, I assume you have SOAMANAGER.
    choose your service & "Apply Selection" (very useless button btw)
    select a binding in the dropdown box or create on if you do not have one yet
    Click button "Show WSDL options" (actually they do not really look like buttons in WD; call it yellow blot)
    Some extra config area is thrown onto your screen (without any sense for usability or design); Change the radio button for WSDL format from "WS policy" to "Standard"; make sure the first radio button group is on "True" for monolithic
    Now click the link (why is this a link and no blot?) called "Display selected bindings WSDL URL"
    an extra text field is again thrown onto your screen somwhere between the dropdown and the WSDL option config area containing an URL (get out your glasses if you don't see the sub-10pt-letters)
    hope it helps,
    anton

  • How can I include 3rd party jar files with my custom extention?

    I'm writing an extension that is dependent upon some 3rd party jars. How can I include/package these with my extension?
    we're using the 11g tech preview
    thanks,
    Dylan

    Do you mean that you need these files to appear in JDeveloper as a library available for the developers who build a project and use your extension?
    You can create a library in JDeveloper with JAR files by simply adding the following to your extension.xml file:
    <jdeveloper-hook xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
    - <libraries xmlns="http://xmlns.oracle.com/jdeveloper/1013/jdev-libraries">
    <library name="My Extension Library">
    <classpath> ${ide.extension.install.home}/lib/some.jar</classpath>
    </library>
    </jdeveloper-hook>

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • How can I include merged projects in the printed documentation?

    I have a master project with several merged projects. This works splendid with online documentation, but when I am asked to provide a printed version, it seems I have to create separate documents for each merged project.
    Is there any setting or fix that enables print also of merged projects and topics when I create printed documentation?
    Pretty please with sugar on top :-)

    Hm - there is a contract with the customer, saying that he wants documentation both as word and pdf, and as we now aim at only writing online documentation, these tasks create extra work, as we are delivering updates each month
    But yes - two beasts, where only chm is actually needed we think.
    -Tone
    Date: Tue, 3 May 2011 06:53:04 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I include merged projects in the printed documentation?
    Hi there
    I'm a bit curious as to the reasoning behind your "persuation process for using chm-files only".
    CHM files and printed documentation are two entirely different beasts.
    Cheers... Rick
    | http://www.robowizard.com/pc.gif | Helpful and Handy Links
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    http://www.gooberguides.com/ProductPages/RoboHelp/RoboHelp82Day.htm
    http://www.ShowMeSolutions.biz
    http://sorcererstone.wordpress.com/
    http://www.gooberguides.com |
    >

  • How can I include a portal component look and feel in a java servlet

    Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?

    Hi José,
    I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
    Regards,
    Guru.
    PS: Give points for helpful replies.

  • How can i include a vi to help me save all the measurement from 10 to 100000

    hi, how can i include a vi that will store my data or save  them for each of the step increament , from the starting measurment 10hz to 10000000hz to the last. pls help
    good
    Attachments:
    saving vi.vi ‏53 KB

    Hi ifyo,
    I couldn't run your VI as i dont have all the components of it. But i have attached herewith a vi which will show you how to save continuously acquired data into a text file. The explanations are added on the block digaram. Let me know if this doesn't help and you need more information.
    Regards,
    Nitzz
    (Give Kudos to good Answers, Mark it as a Solution if your problem is Solved) 
    Attachments:
    Untitled 2.vi ‏9 KB

  • How can I include the Frame Number  when using "Export Frame"?

    Im using the button at the bottom right of the Playback Control Panel called "Export Frame".  This does exactly what I need but I have a lot of frames that need single frame exporting. How can I get the file name to automaticly include the frame number at the end of the file name? 
    For example, instead of it displaying "Sequence 01.Still001"  by default.  I would like for it to display "Sequence 01_0001"   Letting me know that is frame 0001.
    This is possible, correct?

    Well what about in the export option using CTRL + M?  I saw a coworker using this method in an older version of Premiere, but we can't enable it on CS5.5.  Being able to export a single frame as a bmp that has the frame number at the end of the file name.
    Example:
    Output Name: Sequence 01_0001.bmp
    Under Video Basic Setting is:
    Export As Sequence UNCHECKED
    Field Type: Progressive
    Frame number still doesn't show at end of file name.  What are we missing?

Maybe you are looking for

  • Can you have two Apple IDs on one IPAD? One for school and one for home?

    Can you have two Apple IDs on one IPAD? One for school and one for home? If so do you know how to do it?

  • ParForEach mode in BPM

    HI all I want to send different messages to multiple receiversu2019 parllelly. This I want to achieve by ParForEach mode in BPM. I want to send message to related receiver system, like Devmsg to Dev system Qualitymsg to quality system Prodmsg to Prod

  • Pages looses header when opening word document

    Whenever opening a doc or docx file with pages version 5 I loose few fonts (not a problem), header and any watermark. The previous pages version work better on this matter.

  • How long can I wait to purchase apple care

    I just but the iphone 4s world phone without apple care, but I will be back in the states in april. Can i purchase the apple care by then or will ti be too late?

  • Display format page by page

    hi In my program resultset contain more than 30 records. I want to display 20 records and first page contain 10 records and second page contain 10 records. The results should be shown in two pages with the index Page 1 of 1 or Page 1 of 2. Suppose If