One JNLP with different JARs depending on JRE version

Hello everybody! I want to produce one JNLP file that, depending on the user's Java version, loads a particular JAR or not. As an example, Java Activation Framework is included with Java 6 (no download needed), but not with Java 5. This serves just as an example, as that particular library is very small. Still, a user with Java 5 needs to retrieve and load "activation.jar", but Java 6 users might be better of with their built-in version. I know that I can mark the whole JNLP for a particular version (<java>) and that I can make a resource depend on "osName" and "arch". Does anyone know whether such a JDK-dependent resource (or JAR) is possible with JNLP syntax?
Alternatively, I can programmatically download the library, but loading it is cumbersome: I just want to use JavaMail (which needs the Activation Framework) right away, it seems to me that with a custom URLClassLoader I cannot access the library directly (as I need classpath-like access to the Activation Framework)... and I'm hesitant to hack into Reflection as mentioned here.
I'll just provide activation.jar for all of my users, including Java 6 ones; but I'm curious what would be the best way to handle such a situation. I did search the web and the forums a lot, sorry if I missed something obvious.

Sorry, you meant two <resources> in the same JNLP? I can't put "activation.jar" in the same JNLP than the rest of my application, because it's already signed by Sun, but I did try to have in "activation.jnlp" two <resources>, an empty one for version 1.6+ and the JAR in the second one for "1.5". Didn't work either, the JAR gets downloaded.
Same thing for several <resources> in the main JNLP, one for "1.5" including the extension for activation.jar, the other for "1.6+" listing the same contents but without that extension. No matter how I try, I get the console message "JNLP JREDesc in Component ignored". (If I just include everything in one single resource for "1.5+", I don't get that error, so it's not a typo in the <j2se> tag ;-)
Edited by: cato_minor on Mar 26, 2009 12:00 PM

Similar Messages

  • Wifi sync 2 iPhones in one iTunes with different Apple-ID's.

    Wifi sync 2 iPhones in one iTunes with different Apple-ID's. My Phone will show up in iTunes, my wife's wont. After plugging my wife's phone into my Win 8.1 pc and check Sync over wifi, I hit the eject button, could this be the reason? Or might it be the different Apple-ID's? If the answer is the first, is there any way tohave iTunes forgetmy wife's phone so I can addit from scratch?

    Ello,
    I know this, but thats in the past now sadly. The question is: Why wont my wife's iPhone show up in iTunes via wifi?
    Is it because I pushed the eject button? And if so, is there any way I can make iTunes forget my wife's iPhone and *** it from scratch again?
    Or is it because the phones uses different Apple-ID's?

  • One Key FIgure in more than one column with different restrictions

    Hi,
      I am using a key figure in more than one column with different restrictions, but restriction in one column is affecting the result in other column. What shall i do to make it independent from one another??

    Hi Pravender Chauhan,
        If you want in Single column different value for different Rows based on same Key Figure, you can create Structure where you can define different logic for each row but using same key figure.
    If you want to use different Key figures then you should have to Restricted Key Figure and for any calculation you can use calculated Key figure.
    Assign points if Useful.
    Regards,
    Rajdeep.

  • How to create a front panel display that lights up with different colours depending on its input signal?

    I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
    In addition, I wish to display these in an array on screen. Is there any pre-built function for this?

    Repulse wrote:
    I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
    The simplest way would be an intensity graph. It gives you a 2D grid where each grid point is colored according to the value of a 2D array. The Z axis color ramp determines the color.
    My second choice would be an array of colorboxes. (They could even be made to look like LEDs (see image, if course you can leave them square too), All you need is a scaling function thap maps voltages into a color ramp lookup table with an 8bit index)
    (Using booleans and color property nodes is relatively clumsy. Booleans are meant for two states because the value is boolean. Since array elements can only differ in value, and not in properties, it will not even work. Color boxes have a color data type which is much more appropriate for this case)
    LabVIEW Champion . Do more with less code and in less time .

  • Okay can you have more than one account on one computer with different e-mails

    Okay can you have more than one account on one computer with different e-mails

    Yes for iTunes....started a new account and when I try to sign in to the store it gives me a message that this id hasn't been used and would you like to review at which time then it tells me your request cannot be completed and to check date on computer and the cookies well the date is correct and not sure what or how to alter the cookies..I turned firewall off and tried that but still no luck...also deleted temp cookies and still having problems..I have been trying to fix this for days and just about to give up any ideas

  • HT204053 We have two Iphone 4S but we set each one up with different accounts, how can we share purchased or downloaded music from and iTunes card without purchasing twp different cards?

    We have two Iphone 4s with different accounts, what would we need to do to share music from and Itune card if one of us purchased and the other did not?

    Put all of the music on the computer(s) to which you sync, then sync to your idevices

  • How to maintain one vendor with differant plants at differant states.

    Dear All,
    i have one scenario with me in that my client purchasing his goods from one vendor that vendor is having two plants one at mumbai & one at gujarat. Now how i will maintain these two address with the same vendor. Along with that i need to mainatin the tax structure for both in one vendor. While creating purchase order how buyer will pick the tax structure.
    Regards,
    Nandkishor Nachane

    Hi,
      You can create one main vendor code and use partne function to add address of different plant location.
    regards,
    zafar

  • Two iPods on one cumputer with different songs

    I can't find out how to put two ipods with different music on one cumputer and how to put songs on one iPod and not the other. if you know how plz help!

    Additional links and help...
    Using iPod with multiple computers
    http://docs.info.apple.com/article.html?artnum=61675
    Managing content manually on iPod
    http://docs.info.apple.com/article.html?artnum=61148
    iPod: Frequently Asked Questions
    http://docs.info.apple.com/article.html?artnum=60920
    Patrick

  • One landscape with different databases releases

    Dears,
    A customer have MSSQL 2000 installed on your systems DEV and QAS. The PRD system does not installed.
    Now the customer need install only the production system, but he want with MSSQL 2005.
    Does have problems? What SAP recommend?
    Thanks,
    Dejalma Rodrigues

    Hi,
    It is possible to have different releases of DB within a landscape <u>as long as the same release of the SAP application supports it</u>. The end users will not see any difference.
    The challenge is support for DB patching if you don't have anywhere to replicate production issues. Not to mention possible issues with different DB tuning parameters and back-up recovery processes.
    I would suggest that you <b>at least</b> upgrade the QAS system to SQL Server 2005 too in the short term. The recommendation you will always get is to have all 3 aligned on the same release - that should be your longer term goal.
    Cheers,
    Mike

  • Splitting multiple rows onto one row with different fields

    Hi all,
    I have a table. One Course_Code have multiple section_codes i.e. ("NUM" column does not relate to sectype its just an order!)
    Code--------num----Sec_code---Sectype---DESC----------------WEIGHT
    1603--------1-------7427-----------C------------Coursework--------     50
    1603--------2-------7428-----------E------------     Exam----------------     50
    When I query this table i want to be able to see the coursework, exam split on the same row. i.e.
    Code-----Coursework---------Exam
    1603-----C=50------------------E=50
    any help would be great

    Hi,
    "Splitting" means taking an item (such s a string like 'C=50') and diviiding it into smal;ler items (such as the sub-strings 'C' and '50'). Are you really trying to split something, or are you trying to do just the opposite (e.g., combine smaller strings into a bigger string)?
    I think what you're looking for is a Pivot . Like so many other things, exactly how to do it depends on your version of Oracle and your requirements.
    Here's one way:
    SELECT       code
    ,       MIN (CASE WHEN descr = 'Coursework' THEN sectype END)
           ||  '='
           MIN (CASE WHEN descr = 'Coursework' THEN weight  END)     AS coursework
    ,       MIN (CASE WHEN descr = 'Exam'       THEN sectype END)
           ||  '='
           MIN (CASE WHEN descr = 'Exam'           THEN weight  END)     AS exam
    FROM       table_x
    GROUP BY  code
    ;This will work in Oracle 8.1 and higher. Starting in Oracle 11.1, you could also use the SELECT ... PIVOT feature.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using.

  • 2 AI channels on one DAQ, with different sensitivity range

    This vi is based on the State Machine from "new project" on the splash screen at LV startup.
    A while loop is in parallel to the main while loop of the state machine, shown in picture. 
    It runs continuously until the Exit button is pressed.
    The problem seems to be in the ..............start>read>stop..........start>read>stop.......... part along the error line. 
    The reason for this clunky start/stop arrangement is that the voltages measured are in two different sensitivity ranges. 
    The shunt voltage is small and needs the -.2 to .2 V range. The load voltage is larger and -10 to 10 V range is good. 
    In the initialize state, two separate "create channel" vi's were used to specify the voltage range for the physical channel. The corresponding tasks are sent over via local variables.
    The DAQmx errors happen randomly, sometimes the first iteration, sometimes the 50th. 
    I tried disabling one or the other    start>read>stop    for the shunt or load voltage. 
    I tried replacing them with DAQ assistant. 
    I tried various DAQmx vi's:   "wait" and  "control task with unreserve resource selected". 
    But error -50103 "specified resource is reserved" keeps popping up. 
    Is it possible to create two tasks on the same device when they are not used simultaneously? 
    The only reason is to measure in two voltage ranges. 
    Win 7 Pro, 64 bit
    LV 2014 Base
    DAQ hardware: USB 6210
    Thank you.
     

    This has been discussed numerous times. Do NOT use separate tasks. You can use different ranges for different channels with one single task. Just wire the task out of one create channel to the task in of another create channel.
    You are also using local variables where they are almost certainly not needed.

  • One JVM with different system.out / system.err files

    I have a menu application which allows me to launch different swingapps which runs inside one single JVM.
    All applications have their own properties.file which is read and handled at the start of each application.
    One property allows me to print all kind of system.err / system.out which i want to redirect to a specific file. This is implemented with following code:
            if (isTRACE_ENABLED()){
                try {
                    setTrace_out_log(new PrintStream(
                              new BufferedOutputStream(
                                    new FileOutputStream(props.getProperty("TRACE_OUTLOG_FILE")),128), true));
                    System.setOut(getTrace_out_log());
                    setTrace_err_log(new PrintStream(
                            new BufferedOutputStream(
                                  new FileOutputStream(props.getProperty("TRACE_ERRLOG_FILE")),128), true));
                    System.setErr(getTrace_err_log());
                } catch(IOException e) {
                    e.printStackTrace();
            }This works file but... all system.out and system.err is redirected to same file... which is not what i want.
    Example:
    debug property for menu application = enabled
    debug property for app 1 = disabled
    debug property for app 2 = enabled
    In above case i want to have 4 new files:
    - menuapp_out
    - menuapp_err
    - app2_out
    - app2_err
    This doesn't work, the files are created but after starting app2, the print-statements for the menu application are alse redirected to the app_2_xxx files. And when i finish app2, i do not get any print-output anymore
    IMHO this is because the JVM only has 1 system.out and 1 system.err file. Is there some way to solve this?

    I understand that i need to use java.util.logger (JUL) or Log4j
    Are there any (free) tools availabe to read/analyze the logfiles created by above tools?

  • One application with different laguages

    Hi,
    I want to develop one application which can be used in more than one language.
    can any one help me how to do that. I have tried to do that with the *.xlf file. Is there any other approch.
    Regards,
    H.V.Swathi

    Hi Swathi,
    Internationalization (I18N) thru *.xlf files is the approach.
    The concept is you have language specific xlf files (texts in that particular language) created.
    During build & create archive, corresponding .properties files are created from these xlf files (1-1 mapping) and are packed into the archive (ear file).
    When you deploy, this archive having the .properties files is deployed on the SAP WAS.
    Now depending on locale, the required .properties file is read at Web Dynpro runtime & texts in that language are shown to user.
    Summarizing: *.xlf files - Design Time SAP concept & .properties files - WD Runtime usage
    I hope you have already refered the following links:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c6cfad90-0201-0010-a5b8-8f9486346059
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4f5b88e5-0601-0010-cd99-8b88a4d92816
    Hope I am clear.
    Kind Regards,
    Nitin
    Edited by: Nitin Jain on May 5, 2009 3:05 PM

  • Filling a field with different values depends on the country by value help

    dear experts,
                          Could any body help me out ?
    i do have a requirement that in the Screen, iam having a field say Tshirt size, which have to be populated differntly according to the country in the value help. how can i do that.
    iam mentioning what i have done:
    1. defined field and selected From Dictionary Attribute in the screen.
    2.maintained
    Field ztab-fieldname  in the chain endchain.
    please do the needful as hoe come the filedname is populated with value help for different countries?
    Edited by: Murthy Ganti on Dec 17, 2008 12:00 PM

    Hi Murty,
    You need to create a View on the different field set which might be composed across different Tables. Once the view is created you need to create a Search Help using that View by selecting the fields that will come in the Help. Below is the step by step Documentation for the Search Help Creation.
    Link 1
    http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee2b446011d189700000e8322d00/content.htm
    Link 2
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbaa5435c111d1829f0000e829fbfe/content.htm
    But after going through your statement, I have one concern. As you mentioned that you don't have any access for the calling FM in a Report Program, then I doubt whether you will have authorization for the Data Dictionary Object creation also. Just check the Roles and Authorization assigned to your user. You need the S_DEVELOP Authorization Object for any new create.
    Hope this helps.
    Thanks,
    Samantak

  • In MIRO,more than one PO with different vendors than also system is posting

    Dear All,
    When in MIRO, vendor invoice is posting with reference to more than one PO's and if vendors are different in PO's then also system is posting vendor invoice and in this case, system is considering vendor of first mentioned PO and posting the document. This is error found to be in factory business process and need to be controlled immediately, otherwise any repercussions can be faced in future.
    Can anyone advice how to control this.
    Thanks
    Madhukar Mittal

    Hi,
    The system will take over the invoicing party from the first PO and                
    ignore the invoice party from other POs.                                           
    You can see it in Detail tab in MIRo (or in MIR4). This is standard funktionality.                                                                               
    Please check the information from the following notes.                             
    393431                                                                             
    458692   
    Best regards
    Erika

Maybe you are looking for