Force JWS to preload Jars.

Hello,
I would like to force JWS to first download any outdated jars. And then only when all these jars have been downloaded should the Main statup class be called.
Is this possible?
Background is that my startup classes do some classloading and URLConnection stuff which disturbes the JWS update protocol code.
Edited by: javastorm on Mar 25, 2010 10:08 AM

javastorm wrote:
Hello,
I would like to force JWS to first download any outdated jars. And then only when all these jars have been downloaded should the Main statup class be called.
Is this possible?I'd have said, not only possible, but easy, until I read..
Background is that my startup classes do some classloading and URLConnection stuff which disturbes the JWS update protocol code...that. What exactly do you mean by those statements? Are the Jars in question refered to in the resources section of the JNLP file(s)? What is the custom class loading/URLConnection 'stuff' meant to achieve, and how is it implemented?

Similar Messages

  • How to forced JWS to download only jar we want

    Hi everybody !
    In my application, which run from an ftp adress with Java Web Start, I load a main jar.
    After, I will have the opportunity to load in the cache any secondary jar I want (those jar are not required by the application at the beginning) : I just want to click an a button to load the jar I want.
    I try to put a download="lazy" in the jnlp file, but JWS still download the secondary jar after the application is loaded : it is possible to forced JWS to not download this secondary jar, in the optic to download it manually after ?
    Thanks in advance !!!

    You need more than download="lazy" in the jnlp..... You also need to specify part="{somthing}" ...for example (Taken from vamphq).
    <jar href="skinlf.jar" download="lazy" part="skinlf"/>Then, in your client code, you need to explicitly instruct webstart to download this part - use the following (Modified from webstat developers guide):
    DownloadService ds;
             try {
                 ds = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
             } catch (UnavailableServiceException e) {
                 ds = null;
             if (ds != null) {
                 try {
                     // determine if a particular resource is cached
                     boolean cached = ds.isPartCached("skinlf");
                     if (!cached) {
                     // Load the resource into the cache
                     DownloadServiceListener dsl = ds.getDefaultProgressWindow();
                     ds.loadPart("skinlf",dsl);
                 } catch (Exception e) {
                     e.printStackTrace();
             } You cant put any references to any class in the java that you are downloading in this file... Because, it will crash with 'Class not found'. Instead, use reflection to dynamically load your class. Ie, instead of doing:
    new org.me.DownloadedClass();do this instead
    Class.forName("org.me.DownloadedClass").newInstance();Message was edited by:
    tonywestonuk

  • Getting Exception in JWS while downloading jar files from server

    Hi All,
    I am running JWS on j2re1.4.2_10(build 03). while JWS is trying to download jar files from web server, I am getting the following Exception.
    All the jar files are signed. Any idea ?
    JNLPException[category: Download Error : Exception: null : LaunchDesc: null ]
         at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
         at com.sun.javaws.cache.DownloadProtocol.getDownloadSize(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
         at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
         at com.sun.javaws.Launcher.downloadResources(Unknown Source)
         at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
         at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    Are you able to download your *.jar files directly from server
    For example say,
    http://127.0.0.1:8080/test/testme.jarIf yes,
    Then problem should be with your *.jnlp file. Check all your *.jar with respect to context location of your url from where you are downloading *.jnlp file

  • Customer ClassLoader:  keeping JWS from loading jars

    I really like the ability of JWS to be able to download jars required for my application to run, but there are several jars that I need the ability to load up via a custom ClassLoader. But because JWS includes all of these jars in the classpath upon application start, the system class loader will take the first class it can find. Because I need to load classes from these jars based upon something a user selects, I need to have control over the codesource for these classes. Does anyone have any ideas on how to tackle this problem? Not include the jars in the jnlp and then download if not cached locally, if that's the case what's the best way to do that? Include in jnlp and be able to load with custom classloader(I dont think this will work)? Any ideas on this would greatly be appreciated.

    Easiest solution to your problem and still being able to use the update mechanism of JWS is to include your JAR-file in another JAR-file that JWS loads, and then write up your own classloader, which tries to fetch your JAR-file from the downloaded JAR-file (if JWS already downloaded it, otherwise JWS will download it).
    The contents of the jws-stub.jar would be something
    of the following ;).
    jws-stub.jar
    --> myjar1.jar
    --> myjar2.jar
    org.myjar.MyJarClassloader
    Then based on your user selecting something you
    can decide which JAR-file you want to load, and thus
    which class.
    Hope this helped,
    Manfred.

  • JWS Not updating Jars in 1.6.0

    Hi,
    I have been using JWS since JRE 1.3. We have a servlet running and up until now I just had to increment the "version" for a respective Jar file and JWS would download that jar nicely.
    I moved to JRE 1.6 this week and for some reason (using the same back end) it seems like JWS launches and "Skips" and jars that have been updated (e.g. the version incremented). If I add new jars it seems to pick them up.
    Any help would be greatly appreciated. My JWS is here:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+" codebase="http://var_host/servlet/Loader/loanmagic_v4" href="loanmagic.jnlp">
         <information>
              <title>var_lm4_title</title>
              <vendor>Document Systems, Inc.</vendor>
              <homepage href="http://www.loan-magic.com"/>
              <description>Point of Sale Software for Mortgage Professionals.</description>
              <icon href="loanmagic.gif"/>
              <offline-allowed/>
              <shortcut>
    <desktop submenu="var_lm4_title"/>
    <menu submenu="var_lm4_title"/>
    </shortcut>
         </information>
         <security>
              <all-permissions/>
         </security>
         <resources>
              <java version="1.6+" initial-heap-size="64m" max-heap-size="256m"/>
    <jar main="true" href="loanmagic.jar" version="4.0025" download="eager"/>
    <jar href="comfyj-2.4.jar" version="4.000" download="eager"/>
    <jar href="jexplorer-1.8.jar" version="4.000" download="eager"/>
    <jar href="jexplorer-dll.jar" version="4.000" download="eager"/>
    <jar href="jniwrap-3.6.jar" version="4.000" download="eager"/>
    <jar href="winpack-3.6.jar" version="4.000" download="eager"/>
    <jar href="jdom.jar" version="4.000" download="eager"/>
    <jar href="jaxen-core.jar" version="4.000" download="eager"/>
    <jar href="jaxen-jdom.jar" version="4.000" download="eager"/>
    <jar href="saxpath.jar" version="4.000" download="eager"/>
    <jar href="xstream-1.2.1.jar" version="4.000" download="eager"/>
    <jar href="jfreechart-1.0.3.jar" version="4.000" download="eager"/>
              <jar href="jcommon-1.0.8.jar" version="4.000" download="eager"/>
    <jar href="calculators.jar" version="4.000" download="eager"/>
    <jar href="jRegistryKey.jar" version="4.000" download="eager"/>
    <jar href="jRegistryKey-dll.jar" version="4.000" download="eager"/>
    <jar href="xml-apis.jar" version="4.000" download="eager"/>
    <jar href="xalan.jar" version="4.000" download="eager"/>
    <jar href="serializer.jar" version="4.000" download="eager"/>
    <!-- FillMagic -->
    <jar href="fillmagic.jar" version="4.000" download="eager"/>
    <jar href="asjava.jar" version="4.000" download="eager"/>
    <jar href="asjava_p.jar" version="4.000" download="eager"/>
    <jar href="fop.jar" version="4.000" download="eager"/>
    <jar href="avalon-framework-4.2.0.jar" version="4.000" download="eager"/>
    <jar href="fsjython.jar" version="4.000" download="eager"/>
    <jar href="rmstools.jar" version="4.000" download="eager"/>
    <jar href="barcode4j.jar" version="4.000" download="eager"/>
    <!-- ViewMagic -->
    <jar href="itext-1.4.5.jar" version="4.000" download="eager"/>
    <jar href="pcl2pdfconverter.jar" version="4.000" download="eager"/>
    <jar href="pclonscreen.jar" version="4.000" download="eager"/>
    <jar href="pclrenderimage.jar" version="4.000" download="eager"/>
    <jar href="FullViewMagic.jar" version="4.000" download="eager"/>
    <jar href="TableLayout.jar" version="4.000" download="eager"/>
    <!-- Variables Passed into LoanMagic -->
    <property name="syncContext" value="/lmserver4/sync/"/>
    <property name="loginHandlerPath" value="var_host/servlet/login"/>
    <property name="useHTTPS" value="var_https"/>
    <property name="newUserSetupURL" value="https://var_host/webservices/loanmagic/newuserintro.jsp"/>
    <property name="emailPasswordURL" value="https://var_host/webservices/login/emailpass.jsp"/>
    <property name="DSIServerPath" value="var_host"/>
    <property name="emailHandlerPath" value="var_host/webservices/email/Processor"/>
    <property name="emailSchemaPath" value="http://var_host/webservices/email/schema/email_process_request.xsd"/>
    <property name="tutorialURL" value="http://var_host/support/tutorials/loanmagic/main.jsp"/>
    <property name="faqURL" value="http://var_host/support/faq/loanmagic/main.jsp"/>
    <property name="supportURL" value="http://var_host/support/main.jsp"/>
    <property name="productSuggestionsURL" value="http://var_host/support/suggest.jsp"/>
    <property name="pricingURL" value="http://var_host/webservices/loanmagic/fees.jsp"/>
    <property name="requestHandlerPath" value="var_host/servlet/RequestHandler"/>
    <property name="requestHandlerDTDPath" value="var_host/webservices/ws/dtd"/>
    <property name="jwsLoanMagicDir" value="loanmagic_v4"/>
    <property name="adminURL" value="https://var_host/webservices/admin?fromlm=true"/>
    <property name="releaseNotesURL" value="http://var_host/webservices/loanmagic/releasenotes_v4.jsp"/>
    <property name="privacyURL" value="http://var_host/privacy.jsp"/>
    <property name="loanAppURL" value="/lmserver/newLoanApp.do"/>
    <property name="comingSoon" value="http://var_host/products/loanmagic/main.jsp?copy"/>
    <property name="applicationVersion" value="4.0024"/>
         </resources>
         <application-desc main-class="com.docmagic.loanmagic.LoanMagic"/>
    </jnlp>
    Note, for example, I could update:
    <jar main="true" href="loanmagic.jar" version="4.0025" download="eager"/>
    to
    <jar main="true" href="loanmagic.jar" version="4.0026" download="eager"/>
    And it would get downloaded when I restart the JWS app on the client. This no longer seems to be the case..
    Maybe I am missing a new tag or something..

    i'm having the same problem.
    there is a new tag in JNLP 6
    <update check="always" policy="always"/>
    but even so , the jars wont be updated.
    However, i noticed that JWS does update it's cached JNLP (you can check from JWS Cache viewer , Show JNLP) but even if in the new JNLP there are new JAR versions specified , it wont get them till next time you launch the app.
    something like this is described here
    http://java.sun.com/developer/community/askxprt/2006/jl0410.html
    Dan

  • Preloading jar

    For perfomance problem in a java application i need to load
    all the jar used at the start of the application
    How have to do it??
    Many thanks for your efforts
    Massimiliano

    You will have to write your own class loader.

  • How to authenticate a JWS Client download of jar files on a web server

    Here is a history of how i tried to implement the auth system:
    The resources(jar files) cannot be downloaded by any HTTP client from the server without some authentication method.
    As JWS is not reliable when using cookies (only 1.5 supports them, but with problems when in JNLP file i specify j2se version=older that 1.5) , i implemented another mecanism that works like this:
    1. 1.The template JNLP looks like this
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp codebase="http://10.3.0.62/" href="mapped/#JWS_CODE#___#PLATFORM#___app2.2.jnlp">
        <information>
           bla bla
        </information>
        <security>
            <all-permissions/>
        </security>
        <resources>
            <j2se version="1.4"/>
            <jar href="http://10.3.0.62/mapped/gui.jar?jwsid=#JWS_CODE#" version="2.2"/>
            <jar href="http://10.3.0.62/mapped/data.jar?jwsid=#JWS_CODE#" version="2.2"/>
            <jar href="http://10.3.0.62/mapped/log4j.jar?jwsid=#JWS_CODE#"/>
        </resources>
        <application-desc main-class="com.bet.blues.gui.Application">
            <argument>-host</argument>
            <argument>ursus</argument>
            <argument>-port</argument>
            <argument>17771</argument>
        </application-desc>
    </jnlp>2. All resources found in /mapped/ directory are mapped to JWSServlet
    3. The users login to a site , clik on link , /mapped/app2.2.jnlp , the servlet checks if the session is active , gets the PLATFORM form browser request header , gets the JWSCODE for the logged user, replaces this in the template, and returns it to the client
    4.Now after the 1st download the JNLP file is opened by JWS Client , that checks for latest version , requesting the JNLP file again
    like this:
    GET http://10.3.0.62/mapped/f12ks21092___windows___app2.2.jnlp5.Now the servlet sees the the request has a JNLP file name with an ID and PLATFORM, and serves the JNLP as before
    6.The JWS Client will request for JAR Files
    GET http://10.3.0.62/mapped/gui.jar?jwscode=f12ks21092?version-id=2.2Note: that i have forced JWSID parameter in the URL, that's why the query string contains 2 "?"
    - forcing this is because the mapped/*.jar is redirected JnlpDownloadServlet that supports versions , diffs - i cannot use 'version' to put there the jswid param(e.g .../mapped/gui.jar version="fk12ks21092_2.2" because the JnlpDownloadServlet will not find this version , and if JWS Servlet will redirect to JnlpDownloadServlet with correct version param in request, the JWS Client will raise an exception because version responded is not right(JNLPDownloadServlet marks in response HTTP header the version of the jar so JWS CLient will chek it)
    JWS Client expects version 'fk12ks21092_ver2.2'; to correct this i should modify the JnlpDownloadServlet and i shouldnt
    THE PROBLEM :
    on older versions than 1.5 JWS Client raises an exception because it wants to create a temp file named
    " gui.jar?jwscode=f12ks21092" because it contains "?"
    Only with 1.5 that seems to parse the jar name until it meets "?" char :(
    Thats why i wanted to send an error to the client to upgrade to Java Web Start 1.5
    Now, maybe u have a solution to this problem...
    All i want is a solution to let JWS Client download jars only if the user is authenticated by some mecanism....and also support the versioning system.
    Also:
    Note that the jar names must preserve on the client JWS Cache dir ( i cannot use the same method to pass the JWSCODE when requesting the JARS as when requesting the JNLP).

    You need to look into JAAS

  • JWS Extensions, and Upgrading JRE/JDK

    We're using Java Web Start to deploy a java gui app, which needs third party libraries. One of these libraries is the Bouncy Castle crypto library, and signing issues mean we can't repackage this library into our main one, so we use the extension method, with a separate jnlp file etc. to copy the BC library to jre/lib/ext/
    This works, and works well.
    Until a client 'upgraded' their installation of the JRE. This client installed the latest 1.4.2 JRE "over the top" of the existing JRE (without uninstalling the old one).
    As of that moment, our app refused to load. Because a new JRE had been installed, jre/lib/ext no longer contains the crypto library. And JWS doesnt notice.
    I'd like a way of forcing JWS to install the extension, or at least to clear its extension cache so it reperforms the checks. Any ideas?

    This is a well known problem. If you use extension installer to install files in jre/lib/ext. It will only be there for one update version.
    One way around this is to just use a component extension instead of an installer-extension, that figures out itself where jre/lib/ext is, and checks if the jar is installed, and installs it if it is not there.
    another way is to use specific installer extensions for each update release:
    something like this:
    <resources>
    <j2se version="1.4.2_08" href="http://java.sun.com/products/autodl/j2se">
    <resources>
    <extension href="installer08.jnlp"/>
    </resources>
    </j2se>
    <j2se version="1.4.2_09" href="http://java.sun.com/products/autodl/j2se">
    <resources>
    <extension href="installer09.jnlp"/>
    </resources>
    </j2se>
    neither is a great solution, we should provide an easier method of addressing this in a future version of javaws
    /Andy

  • Forcing the JRE WebStart runs in, with deployment.properties

    Our application needs webstart to run in a non-public JRE, i.e. one that
    does not have a registry entry. The problem is, if you run javaws.exe
    from one JRE, webstart can fork off a javaw.exe from another public JRE.
    We do not want this behavior, as it causes potential problems. I thought
    that creating a .0. entry for our non-public JRE in the deployment.properties
    file would solve the problem, and it does for most cases, but I still see some
    cases where a public javaw.exe gets run.
    What I need to know is, what logic does webstart use to decide which JRE to
    use. I have verified that it is possible to use a non-public JRE to run webstart,
    as long as the JRE has an entry in the deployment.properties file.
    Thanks for any help. I am running a 1.4.2 JRE on Windows platforms.
    -Bryan

    Two problems with that:
    1. I cannot modify the 'deployment.properties' as it will interfear with the client PC's java installation. Plus, I would have to automated this modification somehow for every client PC the application is installed on.
    2. The JRE is installed with the application by an installer and not via a URL. I do not want to have clients with slower connections to have to download our JRE over the line just because I cannot force JWS to use the one installed with the application.
    In JWS 1.0 I could force this behavior in the javaws.cfg file. But the next version of our application is using JRE 1.4.2 with JWS 1.2, and the configuration files have been changed and moved around.
    I just need JWS to update my applications JARs and not bother with the JRE.
    Is there anything I can do?

  • DownloadService.loadResource for external jars for 1.6.0-19+

    First, be kind with my english, i'm french (nobody's perfect...)
    I have a JNLP into which i declare a signed jar resource main.jar. This application retreive at execution a list of signed jar names (+a.jar, b.jar+...) that i dynamically load on my need through DownloadService.loadResource. My a.jar, b.jar are cached and it rules! But if i made a new main.jar, a.jar and b.jar, and deploy them on my server, here what's happend:
    - main.jar is tested for modification date on server (thanks to "If-Modified-Since" HTTP header), cache date is before this date, so JWS update main.jar by downloading this new main.jar. This is the behaviour described into specs and it is perfect for me!
    - but for others resources (a.jar, b.jar) i was excpected the same behaviour but JWS does not seems to check for modification date. So a.jar and b.jar are not updated.
    So my first question: Is there a way to tell to DownloadService.loadResource to check for modification date? i could deal with jar version but this basic date checking was great for me...
    Except this cache minor problem, external jar download works just fine except i get the warning security problem [Mixing Signed and Unsigned Code |http://java.sun.com/javase/6/docs/technotes/guides/jweb/mixed_code.html].
    All my jars are signed with the same certificate, so i was a bit confused.
    Anyway, i follow indications and put the Trusted-Only: true attribut into the manifest of main.jar.
    But it leads to this exception:
    java.lang.SecurityException: Trusted-Only loader attempted to load sandboxed resource from http://monserveur/a.jar
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.check(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ParentCallback.access$1400(Unknown Source)
         at com.sun.deploy.security.CPCallbackHandler$ChildElement.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
         at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at my.package.a$5.run(a.java:348)
         at java.lang.Thread.run(Unknown Source)I found some posts that deal with similar problems but it does not give me a working solution. The difference seems to be the fact that i load external jars (not defined into JNLP).
    My JNLP is validated though JaNeLA.
    I cannot set a.jar, b.jar as resources into jnlp because i retreive their location during execution...
    My JNLP also declare:
    <security>
            <all-permissions/>
    </security>I think i'm a bit confused with the sandbox notion and the Trusted-Only: true attribut of the manifest. I also tried to add it to a.jar, b.jar and not main.jar but vainly. I also tried to set it on all jars but it does not work better.
    Is there a way to load external jar without having the Mixing Signed and Unsigned Code warning popup? What do i not well understand?
    Sorry to be so chatty...
    Thanks in advanced for any answer.

    So, I finally succed in finding a solution.
    But this solution seems perhaps a barbarian way to solve my problem but it works.
    The idea (as far as i understand) is that when you define "all-permission" into JNLP file, then these permission are granted for JNLP ClassLoader. When you load external jar through DownloadService.loadResource, then another classloader is used. It seems that this classloader does not inherit security policy from JNLP ClassLoader.
    My solution is to define my own policy:
    Policy.setPolicy(getAllPermissionPolicy());
        * @return a {@link Policy} with all permission granted
       private Policy getAllPermissionPolicy()
          Policy policy = new Policy() {
             private PermissionCollection m_permissionCollection;
             @Override
             public PermissionCollection getPermissions(CodeSource p_codesource)
                return getAllPermissionCollection();
             @Override
             public PermissionCollection getPermissions(ProtectionDomain p_domain)
                return getAllPermissionCollection();
              * @return an AllPermissionCollection
             private PermissionCollection getAllPermissionCollection()
                if (m_permissionCollection == null)
                   m_permissionCollection = new AllPermission().newPermissionCollection();
                   m_permissionCollection.add(new AllPermission());
                return m_permissionCollection;
          return policy;
       }For sure, you can decline this with permission you need. Here, all permission are allowed.
    I'm not quite satisfied because it's seems to be a barbarian style solution. But for now, it fits my uses => no warning popup!
    If anybody has a more proper way to deal with such an issue, i'll be glad to hear it!
    Hope it helps.

  • Embedding JWS app in browser

    Hi,
    How can I run JWS applications from within a browser? I want to use JWS for downloading jars and showing a progress bar during the downloads, but I still want the applet to be embedded in the browser.
    Any help will be appreciated.
    Jas

    Hi,
    Thanks for your help. I was initially using java plug-in, but couldn't get indexing to work. JNLP gives a convenient way of specifying when to download jar files (eager or lazy).
    Any help on how to launch applet embedded in web browser with web start or jar file indexing will be appreciated.
    Jas

  • Where is jar file containing oracle.ifs.beans?

    Where is the jar file containing the Java packages that must be imported in order to compile a Java application that uses iFS? It doesn't seem to have been included when I installed the iFS development kit.

    1) To run an applicaiton against iFS you need the following entries in your Classpath
    classpath "D:\Program Files\Oracle\IFS\custom_classes;D:\Program Files\Oracle\jlib\oracle8.1.6\classes111.zip;D:\Program Files\Oracle\IFS\lib\xmlparserv2.jar;D:\Program Files\Oracle\IFS\lib\release.jar;D:\Program Files\Oracle\IFS\lib\repos.jar;D:\Program Files\Oracle\IFS\lib\tools.jar;D:\Program Files\Oracle\IFS\lib\utils.jar;D:\Program Files\Oracle\IFS\lib\adk.jar;D:\Program Files\Oracle\IFS\jws\lib\servlet.jar;D:\Program Files\Oracle\IFS\settings;D:\Program Files\Oracle\Lib\vbjorb.jar;
    null

  • How to download  "whole folder" to JWS cache by JNLP

    Hi All,
    My scenario is:
    I want to download my application jar and third-part software(has its fixed directory structure,iReport 3.6.0, I can't pick up the jar to download) to client, but it seems that JWS doesn't support to download the "whole folder" to client.
    I have known how to run the iReport program with my application jar if I can download the "whole folder" for iReport.
    What I have tried:
    1. Compress the folder into a jar file, download the jar by +<jar href=.....>+. then write some java code to decompress the jar. [I don't want use this way, because decompress the jar in JWS cache is not good]
    2. Compress the folder into a jar file, download th jar by +<nativelib+ , It seems the nativelib will be auto-decompressed by JWS, but after my tested, I found only files(.txt and others) were decompressed, but the "folder" were not.
    3. Download file to other folder.[Don't use this way, I need JWS to control my updates]
    My question is:
    1. Is there a way to download "whole folder" to JWS cache by JNLP?
    2. Does the nativelib option support "folder" in jar?
    3. The JWS renamed the jar, If I just simply de-compress the jar to cache, does it has any affect with JWS?
    I searched the forum with key words, if you have any idea for this, pleas give me a response!

    I find it very hard to believe that iReport cannot access input by URL or InputStream. If it can, use those and stuff the data into a Jar.
    lorin_gao wrote:
    My question is:
    1. Is there a way to download "whole folder" to JWS cache by JNLP?No.
    2. Does the nativelib option support "folder" in jar?No. (I do not know if it does, but it was never intended to do that.)
    3. The JWS renamed the jar, If I just simply de-compress the jar to cache, does it has any affect with JWS?If you can even find the Jar in JWS, it is a bug that will soon be fixed. Sun has decided it is no business of code to know the location on disk where it is stored.

  • Signed Jars

    I have a web based project that includes numerous iamges. As a result of the images I must sign the jar files. However, to date I have been unsuccessful. I have reviewed the threads and deployment information and would appreciate a straightforward way to accomplish this with Net Beans (the signing function there has not worked for me as well). I would appreciate any assistance.

    If you can place the images inside your jar file and load them from there or place them on a server that hosts crossdomain.xml (*exactly* this file http://static.flickr.com/crossdomain.xml) in the root directory of it's domain, then you do not need to sign your jar file. If you cannot do either of these things and the images must be hosted on a different server than the one hosting your jars, then read on.
    Do not try to use the javafxpackager command line tool to sign jars as that does not currently work => this issue can be tracked here: http://javafx-jira.kenai.com/browse/RT-18246
    Signing documentation is here =>
    http://docs.oracle.com/javafx/2.0/deployment/packaging.htm#BABJGFBH
    http://docs.oracle.com/javafx/2.0/deployment/javafx_ant_task_reference001.htm#CIAFJGAB
    But you have already read all that.
    Signing requires the following steps.
    1. Generate a Certificate Signing Request (CSR).
    2. Submit the CSR to a Certificate Authority (CA).
    3. The CA will generate a code signing certificate for you.
    4. Package your application as a bunch of jar files.
    5. Sign the jar files using your code signing certificate.
    If you are just using a self signed certificate and you are already using NetBeans, then NetBeans can do all of this for you.
    Here are the steps I used to sign a JavaFX project consisting of multiple Jar files using NetBeans nightly build 201112120600
    1. Right click Project and choose Properties.
    2. Project Properties | Libraries | Compile |Add Library... and add your dependent jars.
    3. Project Properties | Packaging
    Check Compress JAR File
    Check Build JAR after Compiling
    Check Copy Dependent Libraries
    Do not check Binary Encode JavaFX CSS Files as that might be buggy.
    4. Project Properties | Deployment
    Check Request unrestricted access
    Signing Certificate: Edit...
    a) choose Self-signed by a generated key OR
    b) use your own keystore if you have a certificate from a trusted public CA.
    Download Mode for Libraries: Use the mix of eager and lazy appropriate for your app. Signing wise, it doesn't matter as all of the jars need to be signed anyway.
    5. Project Properties | Run
    Configuration | New... | Configuration Name => enter browser
    Application Class | Browse... choose your Application's main class.
    Check Use Preloader if you have one (the preloader jar will be signed). If you are having difficulties with basic signing, get that to work first before enabling the Preloader.
    Select Run | in Browser
    Set a Width and Height for the page.
    Leave Web Page empty until you get an empty web page with your app in it to work.
    Choose the Web Browser you want to launch the app in.
    Press OK.
    6. Select the browser config from the drop down combo and hit the run arrow.
    Netbeans will compile your app, package it, generate a self signed certificate, sign all of your application's jars and launch the application in a browser.
    A trick to getting all of the above to work more than one time, is to make sure that you close the browser tab after you have finished testing and before you try to run again, otherwise NetBeans seems to fail with weird errors because the distribution files get locked by the app running inside the browser under Windows.
    If you are still stuck, you can try opening this JavaFX project which uses self-signed jars in NetBeans 7.1 RC2 or later => http://willow-browser.googlecode.com/files/willow-src-prerelease-0.1-netbeans-project.zip

  • CP5 Preloader Weirdness

    I'm having some trouble getting preloaders to work reliably in CP5 for Macintosh. I've got the preloader set to start playing after 5% loads, but Safari doesn't start playing until about 40% loads. Firefox for Mac seems to wait until the entire presentation loads. Firefox for Windows does the same thing.
    This is an 84-slide presentation imported from PowerPoint, with individual audio narration clips attached to each slide.
    Note that I've already tried inserting a .1 second gap before each audio clip to keep CP from merging the streams together, as documented by other users earlier. My problems persist.
    Other details: using the "dotsloading.swf" AS3 preloader and Flash Player 10. I'm using default "low" quality setting, which results in a 10-megabyte SWF file. My questions:
    1. I don't need to upload the preloader SWF file separately, do I? I assumed it gets bundled in the final SWF, but please confirm.
    2. Many slides have basic animation builds. Could these be forcing Flash to preload more of the presentation for some reason? Or are there other options that might cause CP to ignore preloader settings?
    3. Has anyone come up with a reliable workflow for getting these preloaders to behave consistently across browsers?
    Thanks

    Hi,
    Please find the answers to your questions:
    1. I don't need to upload the preloader SWF file separately, do I? I assumed it gets bundled in the final SWF, but please confirm.
    A-Yes it gets bundled as soon as you upload it and publish it.
    2. Many slides have basic animation builds. Could these be forcing Flash to preload more of the presentation for some reason? Or are there other options that might cause CP to ignore preloader settings?
    A- Pls. share your project file or the PPT from which your are creating your project.
    3. Has anyone come up with a reliable workflow for getting these preloaders to behave consistently across browsers?
    A-Let us look at your file and then may be we shall get back to you after trying the browsers you have mentioned.
    Thanks,
    Sikandar

Maybe you are looking for

  • PI Scenarios

    Following are the links to weblogs which will help to develop the basic scenarios. Introduction to IDoc-XI-File scenario and complete walk through for starters. - IDoc to File ABAP Proxies in XI(Client Proxy) - ABAP Proxy to File FILE to JDBC Adapter

  • I reinstant many time 64bit V

    'This ipad cannot be used because the required software is not installed.Run the itunes installer to remove itunes, then install the 64-bit version of itunes.' I get this message everytime I connect my ipad to my computer. I have reinstalled the 64-b

  • Steps in case of imported p.o

    PL.TELL ME STEP BY STEP FOR IMPORTED P.O. WHICH VENDOR iHAVE TO ENTER. THANKS NIRUPAMA

  • Shipment Cost Relevance field grayed out. Possibility to make this editable

    When we create a TD shipment document, based on the shipment type control data, the value of the field Shipment cost relevance is updated. This field is always grayed out, where there is no option to edit. When we check the standard description, we c

  • How to handle E1 Purchases & Sales in SAP B1

    Hi all, How to handle E1 Purchases and Sales in SAP Business One. Kindly advise, if possible provide me the documents. Regards, Vikram