How to enable IPV4 in JNLP file

I need to use this flag -Djava.net.preferIPv4Stack=true when running with JWS. Does anyone know how to specified this flag through JNLP file?
Thanks,
Paul

JNLP will not allow Java Web Start to set arbitrary properties w/o knowing them to be secure.
The built in list of known secure properties dosn't include this one.
On a given client machine you can set a property in the deployment.properties file to allow this property in ther jnlp file:
(in 1.5, or 1.4.2): deployment.javaws.secure.properties=java.net.preferIPv4Stack
This will only help you out for the given client machine
One way you might work around this is to create a small Extension Installer that adds this line to the clients deployment.properties file., but you'll have to sign the extension installer.
/Dietz

Similar Messages

  • If I want to set -Xbootclasspath , how to do it in jnlp file

    if I want to set -Xbootclasspath to let jvm know my classpath, how to do it in jnlp file. or have other way to do it.

    If I want to orb, (now I am using openOrb) , I had to
    let jvm load Orb which I want to use. Did you put those Orb classes into jars and list them in the jnlp file of your Web Start app?
    Regards,
    Marc

  • How to enable commenting into pdf files using java?

    Hi All,
    Is there any way available to enable comments into pdf files through java. I have a Adobe Reader 9 and also I want put some comments into pdf file, but the reader is not allowed to place a comment into pdf file before enabling the Comments into pdf. After enabling the comments in pdf file then only we can place the comments and we can the pdf file with comments.
    Is there any way available to enable comments into pdf file to view acrobat reader.
    Thanks in advance.

    The end user who uses the web application has Acrobat installed in their mahcine needs it only for the purpose of enabling comments in pdf. If this task of enabling comments in pdf is done through my application there is no need for acrobat in such user's machine which was requested as a cost cuttnig measure.
    For this purpose, i need to know about how to enable comments in pdf through java api.
    I have used itext java api for other pdf related manipulation in java. But it does not have feature as per the requirement posted above. Can any body suggest relevant java api to achieve the task requested?
    Tahnks in Advance.

  • How can I download two jnlp files by sequence?

    Hi,
    I want to download two jnlp files by sequence.
    When I click a link,first download a file,finish the operation.
    then download another.
    How can I do this?
    Thanks.

    Why do you want to do this ?
    I don't think that could work that way... But it is possible to reference others JNLP files inside a JNLP file.
    Example in my own jnlp file:
    <jar href="jte4.jar" main="true"/>
    <extension name="JTDS JDBC Driver" href="jtds.jnlp"/>

  • How to customize automatically generated jnlp file

    hi !
    i am using sun application server 9.0.
    i have written an application client, and deployed it to the server.
    when i start the client via web-start, the application cannot load all classes, because there are some jars missing.
    my question: is there a way to customize the jnlp file generated by the server.
    especially to add some additional jars / extension packages ?
    thanks
    wolfgang

    JNLP will not allow Java Web Start to set arbitrary properties w/o knowing them to be secure.
    The built in list of known secure properties dosn't include this one.
    On a given client machine you can set a property in the deployment.properties file to allow this property in ther jnlp file:
    (in 1.5, or 1.4.2): deployment.javaws.secure.properties=java.net.preferIPv4Stack
    This will only help you out for the given client machine
    One way you might work around this is to create a small Extension Installer that adds this line to the clients deployment.properties file., but you'll have to sign the extension installer.
    /Dietz

  • How to enable Windows 7 ISO file for iMac Computer

    ** extremely urgent
    Dear Sir or Madam:
    Due to my misunderstanding,an Apple Customer has purchased Windows 7 ISO file for his iMac Computer.
    But, the fact is that Apple only allows this on computers that support booting from an USB drive (aka they don't have optical drive).
    Though, whether i can adopt an non-recommendation folk prescription, i.e."http://www.codez4mac.com/forum/viewtopic.php?f=212&t=61921"?
    Are there any risk there ?
    Please correct me ASAP.
    Thank you !

    Great news, thanks!
    Not  sure KB codes on what? Burning an ISO to DVD? Pretty Simple in Disk Utility, or the free Burn App...
    http://hints.macworld.com/article.php?story=20060619181010389
    http://burn-osx.sourceforge.net/Pages/English/home.html
    Meanwhile, are there any risks there?
    I doubt any "risk", only very likely thing is that OSX updates will likely rewrite the supported Macs file & if you had need to install Win7 again from ISO, then you'd need to edit that file again.
    I think there was mention of this by Mike Breeden today, but the site is not available for the first time in years right now...
    http://xlr8yourmac.com/
    Could Apple Developers keep an eye on this?
    Between you, me, & the woodwork, I doubt they're interested.
    But...
    http://www.apple.com/feedback/macosx.html

  • How to load .jar files when not specified in the .jnlp file

    Hello,
    We are deploying an application with JWS but due to the nature of this app, we need to download additional jar file only when the user has been authenticated. The jar file(s) we need to download can hardly be predicted (in term of name) and thus cannot be all listed as lazzy resource in the .jnlp file.
    However, we would like to take advantage of the various JWS features relateed to .jar download and cache and would prefer not to reinvent the wheel by implementing our on stuff (i.e. URLClassLoader with caching etc.).
    Any idea, suggestion?
    Thanks in advance.
    Fred.

    How about writing a second jnlp file with the optional jar listed in it and running it only if your user is authenticated?

  • JMX params in jnlp file?

    I tried the following entry in jnlp to expose jmx inmy app.
    <resources>
    <j2se version="1.6.0_12" java-vm-args="-Xverify:none -Xmx1024m -XX:MaxPermSize=128m" href="http://hostname:11931/LB/jre"/>
    <property name="com.sun.management.jmxremote.port" value="5432"/>
    <property name="com.sun.management.jmxremote.authenticate" value="false"/>
    <property name="com.sun.management.jmxremote.ssl" value="false"/>
    </resources>  It doesnt seem to work. Can anybody please tell me how to do this in jnlp file.

    You probably do hate java, cause it's a really strict language, everything has to be valid (type-safety, catching exceptions, and so on), and this should give some perspective about validation issues. I dont hate java. Just my id.
    A forum usually has 3 ways:
    a) somebody already managed your same issue through the forum, you just need searching
    b) somebody already managed your same issue on his own and happens to be a forum user (this is just luck, and luck is a rare thing!)
    c) people with proper knowledge help you out, in this case (looks like your case) you'd better try what you're told, 'cause it may be just a step in a process you don't figure out because of some lack about the whole (otherwise you wouldn't be here in the first place).zzzzzzzzzzzzzzzzzzzzzz
    This provided, does your code work as a standalone app (without JWS)? Yea it works. I could connect to it using JConsole
    What's the output (with JWS) for System.out.println(System.getProperty(+anyOfYourProperties+))?Yea that works. Just the JMX parameters are eaten away
    I don't know much about JMX but I know for sure setting system properties didn't work for me for initial context, even thought the properties where there, I had to pass them explicitly through the proper constructor.Well I know that now. Thanks

  • How to run dynamically created jnlp?

    Hi,
    I'm learning how to run a dynamic jnlp file create by a cgi program.
    I have a jnlp file, which can be executed by the in the
    HTML file. Then my experiment is to write a perl script to print
    exactly the same content as the jnlp file, and then the href is
    re-directed to the cgi. But Then I got an error complaining
    the first line:
    Bad header = <?xml version="1.0+" .... ?>Is there anything else I should add in the header?
    Thanks.

    To be more specific about my question, here is the perl script I used
    to generate the jnlp file. What should I add to it?
    Thanks.
    #!/usr/bin/perl
    use CGI;
    ## Read parameters
    $query = new CGI;
    $SecID    = $query->param("SECID");
    $PlayName = $query->param("PlayName");
    $PlayFile = $query->param("PlayFile");
    $PlayFrom = $query->param("PlayFrom");
    $PlayTo   = $query->param("PlayTo");
    $CodeBase = $query->param("CodeBase");
    # Generating jnlp
    print "Content-Type: application/x-java-jnlp-file \n";
    #print '<%page contentType="application/x-java-jnlp-file" %>'."\n";
    print '<?xml version="1.0" encoding="utf-8"?>'."\n";
    print "<jnlp spec=\"1.0+\"  codebase= \"$CodeBase\" />\n";
    print "  <information> \n";
    print "    <title> $PlayName </title> ";
    print "    <vender>  </vender> \n";
    print "    <description> </description>
    print "    <offline-allowed/>
    print "  </information> \n";
    print "  <security>\n";
    print "     <all-permissions> \n";
    print "  </security>\n";
    print "  <resource>\n";
    print '     <jar href="Java/Piano/MidiBox.jar" />'."\n";
    print '     <j2se version="1.2+"
    href="http://java.sun.com/products/autodl/j2se"/> '."\n";
    print "  </resource>\n";
    print '  <application-desc main-class="eng.midi.MidiBoxGUI">'."\n";
    print "     <argument>-px</argument> \n";
    print "     <argument>-Ud</argument> \n";
    print "     <argument>$PlayFile</argument> \n";
    if ($PlayFrom)
    print "     <argument>-from $PlayFrom </argument> \n";
    if ($playTo)
    print "     <argument>-to $PlayTo </argument> \n";
    print "  </application-desc> \n";
    print "</jnlp> \n";

  • How to specify a JRE range in jnlp file?

    We have a java app which uses Java Web Start. The jnlp file is configured with [j2se version="1.5+"]. So if JRE 1.5 and 1.6 are installed, the app is run on 1.6.
    Now, we have requirement where the app should be restricted to run only within the range - JRE 1.5.0_07 through JRE 1.5.0_17
    [j2se version="1.5*"] will not work - it will always launch the app with the latest jre from 1.5 family.
    I can request an exact product version by including the href attribute. [j2se version="1.5.0_14" href="http://java.sun.com/products/autodl/j2se"/]
    But how do I specify a specific range of JREs in the jnlp file so that JWS picks up a JRE from that range only? So if 1.5.0_07, 1.5.0_17 and JRE 6 are installed, it should run the app on 1.5.0_17.
    Can JNLP really allow you to select specific range of JREs? Is there a good way to accomplish this? Please help.

    sunjavaboy wrote:
    ..how do I specify a specific range of JREs in the jnlp file so that JWS picks up a JRE from that range only? So if 1.5.0_07, 1.5.0_17 and JRE 6 are installed, it should run the app on 1.5.0_17.From the JNLP Specification
    *4.6 Java Runtime Environment*
    Several JREs can be specified, which indicates a prioritized list of the supported JREs, with the most preferred version first. For example,
        <java version="1.3" initial-heap-size="64m"/>
        <java version="1.2">
          <resources> ... </resources>
        </java>So your app. would need more along the lines of..
        <java version="1.5.0_07 1.5.0_08 1.5.0_09 1.5.0_10 1.5.0_11 1.5.0_12 1.5.0_07 1.5.0_13 1.5.0_14 1.5.0_15 1.5.0_16 1.5.0_17 " />
        <java version="1.6+" />Actually you'd need the list of 1.5 versions reversed. Well, you get the idea hopefully. For more on versioning, see my [JWS versioning page|http://pscode.org/jws/version.html].

  • How to disable access to internet completely in the jnlp file

    Hi All,
    Can someone help me in figuring out how to disable access to internet completely in the jnlp file.
    To be specific with the scenario if the client does not have the JRE installed, i would like to have it downloaded from the server where application runs instead of going to java.sun.com website which needs internet access.
    How can we configure it in such a way that it does not go to internet at all.
    Here is the snapshot of my jnlp file
    <j2se version="1.5.0+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="128m"/>
    I tried with the following and still unsuccessful.
    <j2se version="1.5.0+" initial-heap-size="128m" max-heap-size="128m"/>
    Could not find any useful information in the documentation.

    see post from Mike at:
    http://forum.java.sun.com/thread.jspa?threadID=704112&messageID=4082098#4082098
    for how to set up your own autodownload of jre from within your internet.
    /Andy

  • How to change the argument input in a jnlp file?

    A question associated with the following few lines of jnlp codes:
    <application-desc main-class="Main">
    <argument>arg</argument>
    </application-desc>
    My question is: "How can 'arg' be changed dynamically?
    Thanks for help.

    Thank Dietz for help.
    I tried the following jsp code. But it can launch the application only when "test2.jnlp" file exists. "argument to change" can't be passed to the application.
    Thanks.
    <% response.setContentType("application/x-java-jnlp-file");
    out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>");
    out.println("<jnlp ");
    out.println("spec=\"1.0+\" ");
    out.println("codebase=\"http://tang:8080/examples/rtla/\"");
    out.println("href=\"test2.jnlp\">");
    out.println("<information> ");
    out.println("<title>RTLAFrame viewer</title> ");
    out.println("<vendor>XXX, Inc.</vendor> ");
    out.println("<description>RTLAviewer Application Demo</description>");
    out.println("<description kind=\"short\">A viewer.</description> ");
    out.println("<offline-allowed/> ");
    out.println("</information> ");
    out.println("<security> ");
    out.println("<all-permissions/>");
    out.println("</security> ");
    out.println("<resources> ");
    out.println("<j2se version=\"1.3+\"/>");
    out.println("<jar href=\"test.jar\"/> ");
    out.println("</resources> ");
    out.println("<application-desc main-class=\"RTLAFrame\">");
    out.println("<argument>argument to change</argument>");
    out.println("</application-desc> ");
    out.println("</jnlp> ");
    %>

  • How to enable downloading of an Attached File at the Client End

    Hi
    In the process of enabling File Attachment in my Email Service (using Servlets), I have been able to upload the file chosen for attachment.
    Now I am facing the following 3 problems :-
    1. How to enable the client to download his file from his broser ?
    2. How to provide features of uploading multiple files, as till now i have been able to upload only a single fiel ?
    3. I don't want the files to be uploaded as soon as i press upload. Instead I want all files to be collected in a list box and then be uploaded together when i press Attach.
    If anybody has any information, then please send that ASAP.
    thanx

    go there
    http://forum.java.sun.com/thread.jsp?forum=45&thread=155600

  • How to enable the comment option in the pdf file

    Hi,
    How to enable the comment option in the pdf file using acrobat sdk[IAC, javascript],
    Give me idea on this to automate.
    If not leave it.
    Regards,
    jkrishnanvenkat

    jkrishnanvenkat,
    I can also do this from Acrobat Pro. Click Comments - Enable for Commentingand Analysis in Adobe Reader. This can not be done through the DSK or JavaScript.
    Gregory

  • How to enable the "update file" button to update the data template

    We have an escalated customer bug that the chinese character does not display correctly on report. We want to update the data template xml file on customer site to test the fix. However, when the customer login using "XML publisher Administrator" responsitility, select function "Data Definitions", search and then update the definition, on the update page, the button "update file" next to "Data Template" is disabled. Anyone know how to enable the button?
    screenshot at:
    ftp://bugftp.oraclecorp.com/upload/bug6649637/CannotUpdate.doc
    Thanks,
    Wei

    Unless until it is a Manual Journal, SLA page doesn't give you the provision to change them.
    Even for Manual Journal, it won't allow you to change, if that is transferred to GL.
    Only option is to UNDO the accounting and correct the setup to create correct journals. You may contact Oracle Support.
    By
    Vamsi

Maybe you are looking for

  • Submit RSEOUT00 as background job

    Hi all, Here is my requirement.There is a Z program from which RSEOUT00 program has to be called , so that it will change the Idoc status to '03'. I tried using Submit RSEOUT00..and return and also tried JOB_open and then SUBMIT rseout00 WITH docnum

  • Filling an XML structure with data

    Hi I’m about to write a program that shall do GL postings based on IDocs, using standard FM BAPI_ACC_DOCUMENT_POST. The challenge is that the program shall return the results of the postings back to the sending system in XML-format. The interface tea

  • S-Video Cabels

    Hi, I have a VCR with S-Video Output. Does Apple or anyone make a cabel that is S-Video at one end and firewire at the other. I would like to transfer video from an old camera onto my Powerbook using the VCR as a converter. Thnx

  • HT201210 I tried to update my iphone4, in the middle it gave an error and now when try to connect it the computer doesnt even detects it and neither does itunes

    I tried to update my iphone4, in the middle it gave an error and now when try to connect it the computer doesnt even detects it and neither does itunes

  • Spaces in boxes

    Basically, I'm creating a site on Dreamweaver and I've set up a column in the right hand side of a few of my pages, with a few rows. Once I've entered all my text and pics, no spaces appear between any of the rows, it all looks neat and tidy. BUT in