Best way to make a jar with third party jars

hi, i have a question.
i have an application that uses different third party jars. For the moment i make my jar like this :
a) i include all my third party jars (it is working)
or is it better to
b) include the jars in the jnlp file
if b is better should i :
b1) link to them to another jnlp file, like this :
<extension name ....
or
b2) just put them as resources
Another question :
i sign my jar, but can't access the local file system. if i use solution a from above, do i have also to sign the jars that i include in my jar...
for solution b i think i will have to sign all the jars... right ?
Thx for your help

hi, i have a question.
i have an application that uses different third party
jars. For the moment i make my jar like this :
a) i include all my third party jars (it is working)
or is it better to
b) include the jars in the jnlp file
this is best, leaving the third party jars alone.
if b is better should i :
b1) link to them to another jnlp file, like this :
<extension name ....
If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
or
b2) just put them as resources
if you don't need all-permissions anywhere, this is easiest.
If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
>
Another question :
i sign my jar, but can't access the local file
system. if i use solution a from above, do i have
also to sign the jars that i include in my jar...
You need to add :
<security> <all-permissions/> </security>
to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
for solution b i think i will have to sign all the
jars... right ?
yes
Thx for your help/Andy

Similar Messages

  • Create a JAR including third party JARS

    How can I export my project into a JAR file also including the third party JARs being used from my application (project)?
    I think Eclipse does not support this, does it?
    The problem is, that when I export my project into a JAR and then manually put the required JARs into the JAR using WinZip I do get such an Exception:
    java.lang.NoClassDefFoundError: oracle/ucp/jdbc/PoolDataSourceFactory
    In my project I have a class (Runner.java) with a main method which the user can invoke from command line. Furthermore I have a GUI also with a main method which internally invokes Runner.java. How can I start either of themain methods/classes both in the same JAR?
    Thank you.

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • What is the best way to make JPanel moving with some speed...

    I made a JPanel and now I want it to move. What is the best way to do it?? Should I use a Timer class object or sth else, I want the movement to be smooth, please help me. Thanks.

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.Timer;
    public class PanelMotion
        public static void main(String[] args)
            MotionPanel panel = new MotionPanel();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(panel.getUIPanel(), "North");
            f.getContentPane().add(panel);
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class MotionPanel extends JPanel
        Timer timer;
        final int DELAY;
        int dx, dy;
        public MotionPanel()
            final JPanel panel = new JPanel();
            panel.setBackground(Color.red);
            panel.setPreferredSize(new Dimension(25,25));
            panel.setBounds(50,50,panel.getPreferredSize().width,
                                  panel.getPreferredSize().height);
            dx = 2;
            dy = 3;
            DELAY = 25;
            timer = new Timer(DELAY, new ActionListener()
                public void actionPerformed(ActionEvent e)
                    int w = getWidth();
                    int h = getHeight();
                    Rectangle r = panel.getBounds();
                    if(r.x + dx <= 0 || r.x + r.width + dx >= w)
                        dx *= -1;
                    if(r.y + dy <= 0 || r.y + r.height + dy >= h)
                        dy *= -1;
                    r.x += dx;
                    r.y += dy;
                    panel.setBounds(r.x, r.y, r.width, r.height);
                    repaint();
            setBackground(Color.white);
            setLayout(null);
            add(panel);
        public JPanel getUIPanel()
            final JButton
                start = new JButton("start"),
                stop  = new JButton("stop");
            ActionListener l = new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JButton button = (JButton)e.getSource();
                    if(button == start)
                        if(!timer.isRunning())
                            timer.start();
                    if(button == stop)
                        timer.stop();
            start.addActionListener(l);
            stop.addActionListener(l);
            JPanel panel = new JPanel();
            panel.add(start);
            panel.add(stop);
            return panel;
    }

  • Create Stanadlone JARs with Third-party API

    Hi,
    I'm working on some personal explorations using OSB 11g, and for that I need to call some JARs with my code. But, the problem is that I'm using Apache POI API for reading MS Excel files. So, how do I go about exporting the POI API along with my code into a single JAR. It has to be one JAR, since to the best of my knowledge OSB doesn't support referencing of multiple JARs at one go.

    See http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/

  • Need connectivity of SAP Oracle with Third Party tool with dsn

    Hi Friends,
    We need to access SAP's Oracle database with third party tool with the help of dsn creation. For that we need to create 2 staging tables and need a new segment for these tables. Our data will move from SAP transactions to these 2 tables and we want to fetch this data via dsn into another third party S/W.
    I am unaware of such kind of working, can you please help me how to create new segment and how to create dsn for accessing tables in this segment.
    Our requirement is as follow.
    The staging tables are required in the SAP database with user name and password. The user should have all access to the staging table only.
    Requesting your kind help on this issue. Please suggest for further processing of activity.
    Rgds, Krishan Raheja.

    Hi,
    Common way to integrate SAP (database) with third party Application is to use and implement SAP Connector (Java or .Net).
    Using this, you can fetch the data from SAP database to use it in Third party application.
    As per my understanding the method you mentioned, will void the SAP database license term.
    So Please check before doing such configuraiton. Also that method is NOT recommended..
    Regards.
    Rajesh Narkhede

  • Best way to make a birth to 70th B-day photo timeline with music

    I am not very Mac savy but have a Macbook Pro and have purchased I-photo and can purchase other apps if needed. I just need what I purchase to work.  My I-photo used to freeze a lot but hasn't for a while with the latest downloads.  I have pictures downloaded on several discs, I want to copy them and pick ones that pertain to this persons life.  Then make a slideshow of pictures set to music.  I want to be able to hand out copies of this disc as well.  Unsure about music copywrites and also the proceedure that would be best. I also don't want to use up all my computer space for this one project.  Help!

    hi, i have a question.
    i have an application that uses different third party
    jars. For the moment i make my jar like this :
    a) i include all my third party jars (it is working)
    or is it better to
    b) include the jars in the jnlp file
    this is best, leaving the third party jars alone.
    if b is better should i :
    b1) link to them to another jnlp file, like this :
    <extension name ....
    If you app needs all-permissions, it is best to do it this way, you can, for example, sign your jar, and then ask for all-permissions in the main jnlp file, then not ask for all-permissions in the extension jnlp file. Or you can ask for all-permission in the extension as well, if the third party jars are signed, and need all-permissions to run properly.
    or
    b2) just put them as resources
    if you don't need all-permissions anywhere, this is easiest.
    If you do need all-permissions everywhere, you could also do this, but you would need to sign the third party jars with the same certificate chain as you signed your jar.
    If the third party jars are allready signed by the third party, or if all-permissions are only needed in some of the jars, the b1 is beter.
    >
    Another question :
    i sign my jar, but can't access the local file
    system. if i use solution a from above, do i have
    also to sign the jars that i include in my jar...
    You need to add :
    <security> <all-permissions/> </security>
    to your jnlp file. In that case, all the jars listed as resources in that jnlp file need to be signed, and by the same certificate.
    for solution b i think i will have to sign all the
    jars... right ?
    yes
    Thx for your help/Andy

  • What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer do not seem to have the capacity. Thanks!

    What is the best way to make a 30 minute video lecture taken with my iPad available to my university class? Email and USB transfer to the PC in the classroom do not seem to work because of the file size. Thanks! Quincy

    How to Transfer Photos from an iPad to a Computer
    http://www.wikihow.com/Transfer-Photos-from-an-iPad-to-a-Computer
    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    I am moving from PC to Mac.  My PC has two internal drives and I have a 3Tb external.  What is best way to move the data from the internal drives to Mac and the best way to make the external drive read write without losing data

    Paragon even has non-destriuctive conversion utility if you do want to change drive.
    Hard to imagine using 3TB that isn't NTFS. Mac uses GPT for default partition type as well as HFS+
    www.paragon-software.com
    Some general Apple Help www.apple.com/support/
    Also,
    Mac OS X Help
    http://www.apple.com/support/macbasics/
    Isolating Issues in Mac OS
    http://support.apple.com/kb/TS1388
    https://www.apple.com/support/osx/
    https://www.apple.com/support/quickassist/
    http://www.apple.com/support/mac101/help/
    http://www.apple.com/support/mac101/tour/
    Get Help with your Product
    http://docs.info.apple.com/article.html?artnum=304725
    Apple Mac App Store
    https://discussions.apple.com/community/mac_app_store/using_mac_apple_store
    How to Buy Mac OS X Mountain Lion/Lion
    http://www.apple.com/osx/how-to-upgrade/
    TimeMachine 101
    https://support.apple.com/kb/HT1427
    http://www.apple.com/support/timemachine
    Mac OS X Community
    https://discussions.apple.com/community/mac_os

  • What is the best way to make a DVD from iMovie

    What is the best way to make a DVD from iMovie?
    I am using iMovie 06 (Naturally) with iDVD 08. I have always used;
    iMovie 06, File > Share to iDVD 08. And got pretty good results.
    Some say the best way is to quit iMovie 06, open iDVD and import the movie from the Media button.
    I have tried both methods in the results look the same. I'm interested in getting the very best quality possible.

    You likely have one of the most expensive media converter boxes on the market today.
    But does it work well with most macs? (my guess is that it does). But more specifically can it "handshake" with an intel based mac? I personally haven't tried it.
    But you may want to read this for yourself if you haven't already:
    http://discussions.apple.com/thread.jspa?threadID=1179361&tstart=2362
    Assuming it works then the best format is .dv which this unit will support apparently.

  • What is the best way to make a list of addresses for envelopes or labels?  Address book, numbers or pages?

    What is the best way to make a list of addresses for envelopes and labels?  Address book, Pages or Numbers?

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

  • Best way to make a Constant Power Load

    What would be the best way to make a load that always draws the same amount of power whatever the voltage on it. For exemple, an load would draw 100 mA at 24 VDC, 150 mA at 18 VDC and 200 mA at 12 VDC. All I found is to use Nonlinear Dependant source.
    Any easier way to do this? Thanks.

    Sorry about the file mix up, I was anxious to get it posted for you that I failed to realize you were using a different version.
    As far as the last "amplifier" in your Leaky Feeder design, I actually hooked it up to the 24VDC supply on the left and this was a direct connect before the first resistor.  I realize this is not what would be ideal for your application as probably you have only a certain place in the Leaker Feeder to tap off from. I would suppose this would be going into a different entry way off the main entry at an intersection so I do not know how my adjusting the placing of this would effect the results because it seems to me by doing this I have bypassed a bunch resistance in the Feeder cable itself (if that is what the resistors represent) and also bypassed a number of amplification stages in the process as well.
    I will post a picture of my circuit for you to examine and try in Version 9.  This is the only thing I could come up with to where the power draw was the same no matter what the voltage input was. The only thing I can see as a drawback is that with this circuit the current remains constant but the voltage fluctuates. If I use a 24V regualtor and drop the input voltage to 12V the current remains at approx 118ma but the voltage drops to 12V when I plug it into your circuit.. I will let you try it and see what you may be able to do with it.
    Message Edited by lacy on 04-28-2008 05:47 PM
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day
    Attachments:
    Possible Constant Power Load.JPG ‏285 KB

  • Best way to build a website with hundreds of pages

    What is the best way to build a website with hundreds of pages that include businesses in every city of the U.S. I will be building it in Dreamweaver CS4 and pulling the data from an MS Excel spreadsheet.
    I started building it by building the first page and then saving a new page with new data and so on.
    There must be a way to pull from the Excel doc without copying and pasting each page of data, and there must be a way to build this site smaller and easier to make changes when needed.
    Thanks

    You already have other people addressing the DB issues - so I will bring up the other... You are just saving a copy as a new page and then copy and pasting the changed content into  it?
    What you want to do is take the first page, once you have your design done - and save it as a template (file - save as - Dreamweaver Template).
    Then you want to select the areas (most likely the divs you have content in) that will have content changed, and select the div or p or whatever element... and go to Insert - Template Objects - Editible Region.
    Make sure you don't made editable the areas that are the primary design - such as a logo element, a header image, the navigation etc.  If you want to change those - you would do so by making the change on the template, and then it will automatically update all pages made based on that template.
    Once you are done setting up the templates - go to your new page and choose Modify - Templates - Apply Template To Page
    Select the template you just created (note it will be placed inside of a new folder titled "templates" automatically by Dreamweaver).
    Now, any of the areas you selected to add different content into will be selectable, and you can copy/paste or however you are doing so.
    Good luck

  • Best way to share a video with someone in another city...

    What is the best way to share a video with someone in another city?
    I know that FCPX contains all sorts of share options which create different resolutions and file sizes appropriate for different sites like YouTube, Facebook, and others.  But how to create the videos really isn't the problem.
    I want to know how to share them.  I'm creating videos that are ultimately to be viewed on the internet.  When I have a completed video, I want to show it to the person who it is for before I finalize it.  I know that if it very small, I could email it.  And if it's larger, I could use something like Dropbox.  But I don't necessarily want them to have a copy of it (though I could do that and put a watermark on it).
    I'd like to upload it to a site like YouTube or Vimeo, but those sites seem to be about sharing videos with a wide audience.  I know you can make a video private on YouTube, but, from what I've read, they permanently have the right to use the content, which I definitely don't want.
    So what's the best way to do this?  I'm going to have to do it regularly, so I'm willing to pay for a service if it assures privacy and does not try to assert some right to my content.
    I know there is an issue to be considered with people screen capturing content, but I'll use a watermark to lessen the chances of that.

    Hi Russ--
    I'll have to read through Vimeo's terms of service, but I have to think they're asserting some right to the content like YouTube does.
    Plus, these are commercial videos, and I don't think they allow that.  Of course, if they're private, I'm obviously not trying to sell anything.  But I have to think that it somehow is against their TOS since me posting a bunch of private videos that nobody can see really doesn't do them any good at all.

  • Best practices for apps integration with third party systems ?

    Hi all
    I would like to know if there is any document from oracle or from your own regarding best practices for apps integration with third party systems.
    For example, in particular, let's say we need customization in a given module(ex:payables) need to provide data to a third party system, consider following:
    outbound interface:
    1)should third party system should be given with direct access to oracle database to access a particular payments data information table/view to look for data ?
    2) should oracle create a file to third party system, so that it can read and do what it need to do?
    inbound:
    1) should third party should directly login and insert data into tables which holds response data?
    2) again, should third party create file and oralce apps will pick up for further processing?
    again, there could be lot of company specific scenarios like it has to be real time or not... etc...
    How does companies make sure third party systems are not directly dipping into other systems (oracle apps/others), so that it will follow certain integration best practices.
    how does enterprise architectute will play a role in this? can we apply SOA standards? should use request/reply using Tibco etc?
    Many oracle apps implementations customizations are more or less directly interacting with third party systems by including code to login into respective third party systems and vice versa.
    Let me your know if you have done differently and that would help oracle apps community.
    thanks
    rrb.

    you want to send idoc to third party system (NONSAP).
    what kind of system is it? can it handle http requests
    or
    can it handle webservice?
    which version of R/3 you are using?
    what is the mechanism the receiving system has, to receive data?
    Regards
    Raja

  • What is the best way to make a clickable grid

    What would be the best way to make a clickable area that can
    differentiate between discrete parts of the area when clicked on.
    In other words, instead a having multiple buttons in a row that the
    user can click on, is there a way to have an area that has lines to
    distinguish the different areas(buttons) but that acts as though
    there were multiple consecutive buttons?
    For example, if I wanted to graphically simulate the buttons
    on a phone but without using buttons. Instead use some kind of grid
    or area that is divided into multiple sub areas that can
    distinguish the discrete positions (each button on the phone, or
    sub-area).
    Thank you,
    Salchichasa

    I liek your idea of having multiple images in a grid. I think
    that would be the best bet as you mentioned. Having one big picture
    would be hard to distinguish the sub-areas with mouse coordinates.
    I think checking the coordinates for the mouse would be very
    tedious because I would have to check for the left boundary, the
    right, top, and bottom for each sub-area!
    What do you mean by using button components and reskinning.
    Is this simply using buttons and changing the way they look? I'm
    just trying to save time and memory, because if I had a 10 by 10
    grid, thats a hundred buttons. Wouldn't that slow down the machine
    alot? And for that matter wouldn't having a grid of 10 by 10 images
    also by the same deal?
    Thanks for the input, I'm just trying to find the most
    efficient way to do it.

Maybe you are looking for

  • What's the best way to move thousands of files?

    I'm working on a script that renames and moves potentially thousands of files at a time. It's meant to process photo timelapses and separate bracketed exposures. The first part of my script works very well. tell application "Finder" to set firstSetCh

  • Messaging is very slow on ios 8.2 with iPhone 4s

    After upgrading my 4s to ios 8.2, messaging is very slow - it can take 30 seconds to open messaging, view list of messages or open a single message.  Sometimes messaging 'gives up' and returns me to home screen.  Anyone else experiencing this?

  • Dependecy injection EJB into a jsp

    Hello, How can I do a dependency injection of and EJB into a jsp? When Iu2019m trying to used it (see below), It doesnu2019t work, What Iu2019m doing wrong? Also I tried to do a lookup, but I canu2019t do a cast because the classe returned by the loo

  • Entrourage calendar and iPod Classic

    Does the iPod Classic sync calendar data with Microsoft Entourage? The iPod manual notes that it can sync with iCal and Outlook, but Entourage is mentioned only with regard to contact data. I can't find any reference to this in the forum. Thanks, Tom

  • How do I start/stop a slide's animation?

    One slide of a slideshow I'm making I want the animation to end after it's completed without looping.  I can do this by adding the stop(); command into the last frame of that slide, but if I return to that slide, it will remain in the end position in