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

Similar Messages

  • JWS Application to Browser (JavaScript) communication

    Here is my scenario:
    I would like to use Java Web Start technology to distribute a training simulation application. The main application is written in native code, and I would like to launch the app from a web browser, and have the native app send simple messages back to the browser (i.e. "Objective xyz completed").
    So far I've been able to create a Java Web Start wrapper application and deploy it along with the native code and resources via Java Web Start. So far so good. I also have tackled JNI to enable the native app to talk to the JWS wrapper.
    My problem is getting the Java app (started via JWS) to talk back to the browser (specifically a JavaScript method or headless Java applet). Do my dismay, I have found that there is no direct way for JWS app to talk to the browser that launched it. So what are my "indirect" options?
    I have been toying with the following ideas:
    1) use a java applet in the browser to talk with the JWS app via sockets
    2) use a java applet in the browser to talk with the JWS app via RMI
    Is my analysis correct, or are there any other possible solutions to my problem?
    Note that I am already using native code in the JWS app, so I will have to have some sort of elevated permissions anyway...
    Thanks,
    Chris

    Sorry, but one of the main differences between an Applet and a JNLP app is that JNLP apps don't know anything about the browser. (The browser only knows about the JNLP MIME-type, which is (hopefully) associated with JavaWS.)
    Basically, think of the JNLP app as any other stand-alone app when it comes to the browser. If you need to talk to the browser, then anything that would let a stand-alone app talk to the browser will also work for a JNLP app. However, I don't know of any standard tactic for doing this.
    One question is, do you really need to talk to the browser, or is it possible you just want to talk to your server using HTTP?
    Also, if all you want the browser to do is display a specific page, then there is an API for that in 5.0. This is described here:
            http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/examples.html#BasicService
    If you really need to talk to the browser, then you should probably consider writing your application as an applet instead.
    Mike.

  • Embedded hyperlink into new browser tab/window

      Hi Team,
    There is a requirement in my project for that, need to open embedded hyperlink into new browser tab/window, hyperlink is available in the pdf file which is open in browser (Internet Explorer).
    More than 2 lakh user is using the product so, there is any way to set the hyperlink target as a _blank so that the link open in new tab/window.
    Is there any adobe API is there which can support the above requirement?
    Is there any other way which can fulfill the requirement?
    End user is more than 2 lakh so, am not going to change the setting of Adobe reader as well as browser.
      Need your help to resolve the issues.
    Regards,
    Rupesh

    Yes, there is an API that is supposed to do this in the Web brower.  Does it work?  Not reliably is what I have found because different web browsers seem to interpret the way that Acrobat calls for a new window differently.
    launchURL
    7.0
    S
    Launches a URL in a browser window.
    Note:    Beginning with Acrobat 8.1, File and JavaScript URLs can be executed only when operating in a privileged context, such as during a batch or console event. File and JavaScript URLs begin with the scheme names javascript or file.
    Parameters
    cURL
    A string that specifies the URL to launch.
    bNewFrame
    (optional) If true, this method launches the URL in a new window of the browser application. The default is false.
    Returns
    The value undefined is returned on success. An exception is thrown on failure.
    Example 1
        app.launchURL("http://www.example.com/", true);
    Example 2
    Add an online help item to the menu system. This code should be placed in a folder-level JavaScript file, or executed from the JavaScript Debugger console.
        app.addMenuItem({
            cName: "myHelp", cUser: "Online myHelp",
            cParent: "Help",
            cExec: "app.launchURL('www.example.com/myhelp.html');",
            nPos: 0
    Related methods are openDoc and the Doc object getURL method.

  • A Flex App in browser is a swf file or translated to Javascript

    A Flex App in browser is a swf file or translated to Javascript?
    Like Flash web site plugins [not whole browser window], exist and Flex plugins?
    These are both swf files only without other supporting files?

    A Flex app is a SWF and is not translated to Javascript.  Many Flex apps do
    use Javascript to handle history management and startup focus.

  • MMS App And Browser Deleted From Phone!

    I Wiped My Phone and I No LOnger Have MMS Or THe BRowser On My Phone What Do I Do?  PLZ HELP

    Not to worry Brian303.  The solution is simple:  You need to reinstall your OS.
    Plug your phone into your PC via USB.  Open Desktop Manager.  If you don't have it installed, go to www.blackberry.com and look at the top for Apps & Software.  The link is on that page.
    Once you're plugged in and DM is running, click Device at the top and Update from the drop-down menu.  You might get a prompt saying your phone is up to date.  If you're actually offered an update, do it.  If you're not, look down in that box to where it shows Show Other Versions.  Click that and look for the OS currently installed on your phone (it should be the one at the top).  Make sure that one is checked and click Update.  Go grab a sandwich and wait until the update is complete.  Once completed, your MMS app and browser will be present once again.  Be sure not to get too excited or you might choke on your sandwich. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • Why does my phone direct me to the william hill app when browsing safari?

    why does my phone direct me to the william hill app when browsing safari?

    It's an advert from a (dodgy) website. Some advertisers use these rather unscrupulous ads.
    All you can do to avoid such obtrusive advertising is to stop using the websites that do it. Maybe then they'll learn not to be so blatant.

  • JWS app randomly fails

    Hi
    Firstly sorry for my english.
    I have a JAR signed with a self-signed certificate and deployed by JWS.
    It usually runs ok but sometimes fails which is quite annoying.
    These are the last log lines:
    +<record>+
    +<date>2009-09-08T16:55:33</date>+
    +<millis>1252421733468</millis>+
    +<sequence>173</sequence>+
    +<logger>com.sun.deploy</logger>+
    +<level>FINE</level>+
    +<class>com.sun.deploy.util.LoggerTraceListener</class>+
    +<method>print</method>+
    +<thread>10</thread>+
    +<message>network: Conectando socket://127.0.0.1:4590 con proxy=DIRECT+
    +</message>+
    +</record>+
    +<record>+
    +<date>2009-09-08T16:55:37</date>+
    +<millis>1252421737171</millis>+
    +<sequence>174</sequence>+
    +<logger>com.sun.deploy</logger>+
    +<level>FINE</level>+
    +<class>com.sun.deploy.util.LoggerTraceListener</class>+
    +<method>print</method>+
    +<thread>10</thread>+
    +<message>security: JAVAWS AppPolicy Permission requested for: http://127.0.0.1/ikuspro/ikuspro.jar+
    +</message>+
    +</record>+
    +<record>+
    +<date>2009-09-08T16:55:37</date>+
    +<millis>1252421737171</millis>+
    +<sequence>175</sequence>+
    +<logger>com.sun.deploy</logger>+
    +<level>FINE</level>+
    +<class>com.sun.deploy.util.LoggerTraceListener</class>+
    +<method>print</method>+
    +<thread>10</thread>+
    +<message>security: We were not granted permission, exiting+
    +</message>+
    +</record>+
    +</log>+
    And this is my jnlp
    +<?xml version="1.0" encoding="utf-8"?>+
    +<!-- Fichero JNLP de Ikuspro -->+
    +<jnlp spec="6.0+" codebase="http://127.0.0.1/ikuspro" href="ikuspro.jnlp">+
    +     <information>+
    +          <title>Ikuspro</title>+
    +          <vendor>MyName</vendor>+
    +          <homepage href=""/>+
    +          <description>Ikuspro</description>+
    +          <description kind="short">Desc+
    +          </description>+
    +          <icon href="ikusproLogo.png"/>+
    +          <icon kind="splash" href="splash.png"/>+
    +          <offline-allowed/>+
    +          <shortcut online="true">+
    +               <desktop/>+
    +               <menu submenu="Ikuspro"/>+
    +          </shortcut>+
    +     </information>+
    +     +
    +     <security>+
    +          <all-permissions/>+
    +     </security>+
    +     <update check="timeout" policy="prompt-update">+
    +     </update>+
    +     <resources>+
    +     <property name="javaws.debug.0" value="+TraceSecurity"/>+
    +     <property name="javaws.debug.1" value="+TraceCache"/>+
    +     <property name="javaws.debug.2" value="+TraceDiskCache"/>+
    +     <property name="javaws.debug.3" value="+TraceDownload"/>+
    +     <property name="javaws.debug.4" value="+TraceXMLParsing"/>      +
    +          <j2se version="1.6+" java-vm-args="-esa -Xnoclassgc"/>+
    +          <jar href="ikuspro.jar"/>+
    +     </resources>+
    +     <application-desc main-class="ikuspro.main.Ikuspro"/>+
    +</jnlp>+
    As I've said It doesn't always happen and the cert has been accepted permanently.
    Besides I see that the debugging is in FINE level, How can I make it more verbose? How can I attach a debugger a JWS app?
    Thanks in advance

    I just made a topic about the same problem but I didnt see yours. I had the same thing happen. Subscribing toa  podcast would cuase it to load a list of past episodes. I marked them as played and enabled autodownload. Shortly thereafter it would start downlaoding an episode from 2 years ago. It seems like the app isnt getting the full list upfront and with each new episode it finds, considers them new regardless of the date. After killing the autodwonload feature I had some weird bug with getting empty duplicate podcast subscriptions. I've given up on the app for now. They really should waited for iOS 6. I am using the iOS 6 beta and the Music app recognizes the podcast app and removes Podcasts section from the music app. Its clear they intend to make the same separation they did with Videos, but since iOS5 still access podcasts and iTunes hasn't been updated to deal specifically with the Podcasts app, its just making a mess of things.

  • Offline deploying of JWS app

    Hello,
    I have pretty big JWS app, it's loading properly, it's running properly and generally speaking everything is just fine. But the as you focus on the word "big", you will get the point---it has about 30MB and it is to be supposed to run on mobile laptops with GPRS connection to internet. In other words: very slow connection. So the initial download could be very long and problematic, besides not every worker is familiar enough with "technical problems", so it may happen that on some terminals it would fail to initialize properly. So I (we) wanted to issue installation CD to our workers with the complete installation. And the the question: is there a way to preinstall JWS app not directly from host and via JNLP file, but from local files?

    Hi
    You could pre-install the bulk of the jars into the lib folder of the JRE on the laptop, leave a single small jar on the server to act as the booting application. All your classes should then be available because the JVM boot path automatically includes all jars stored in the jre/lib folder...
    The booting class could event do a getClassLoader().getInstance("your.class.name") to check to see if your custom jars are available. If they are not then it could say something like "Sorry you need to install the software from the CD befor running this application"
    If your not comfortable installing the extra jars in the jre/lib folder you could (alternately) install the jars in another location on the machine and invoke a new instance of the JVM with those jars on the boot path (using the System.exec(""))
    Z

  • Begginer Flex Apps for browser Questions:

    Begginer Flex Apps for browser Questions:
    To change Dim in Flex App I must change file in address bar of browser, in other words create another page?
    Usually Flex Web sites come in only one file or many [upper 10?]?
    Scrolled Area in Flex how called [I mean like XHTML DIV Scrolled area?
    I book Flex 4: vol. I , Tranning from the Source, from Adobe press, covered:
    Scrolled Areas
    email components
    publish to live server
    if not, then all these covered in vol.II?

    to change the dimension of your flash window inside the browser you can use javascript... or you can have your flash-element in full size of the browser window and handle the resizing flash-intern, so you do not need an extra page for that. Just take a look at the HTML-Code and ask again if you are not that skilled with HTML/JavaScript.
    usual you have only one SWF.
    You can use the spark Scroller (see http://blog.flexexamples.com/2009/05/01/creating-a-scrolling-spark-panel-container-in-flex -gumbo/ for example)
    Sorry, I don't know, but I can give you some hints:
    for scrolling you can use Scroller
    I don't know, what you mean by e-mail but you can use javascript to create a "mailto:"-link (see http://flexonblog.wordpress.com/2007/12/18/mailing-in-flex-using-javascript-function-mailt o/ )
    the easiest way to deploy you just have to copy your swf and html-files from your flex-project to a web-server.

  • No connection to apps/mail/browser??

    So correct me if I'm wrong --- if you're not connected to a wifi network, your phone should still have the same functionality (apps, email, browser) through Verizon cellular service, right?  (with a perhaps slower connection)
    So why is it with my fascinate, I continually get no connection and no options to check email, open a browser or use any apps like maps, facebook, etc - EVEN with a strong connection? 
    Example... I'm looking at my phone and I have three bars showing a pretty good connection - I'm not using wifi, but shouldn't have to (right?) with a solid connection... and the only thing I can do with the phone is text and call.  I've taken the battery in and out too many times to count. 
    What is the issue i'm missing here?

    Pac10family wrote:
    So to confirm... while my phone has already been active for a month or so now, going in through my verizon account and going through the activate devise process a second time, has been a fix for others?  wanted to just be sure I understood, before i did this. 
    You need to activate another device for a few minutes and then reactivate your current one. This resets your data and corrects the issue with the network.

  • I need an Ipad app web browser that will emulate internet explorer as my MLS real estate system only uses internet explorer.  Why is Atomic full version not available in the app store  is there another browser that will do this

    I need an iPad app web browser that will emulate internet explorer as my MLS real estate system uses only internet explorer.  Why does Atomic no longer sell the full verison.  What web browser can I use?

    Probably none. It's very possible that the reason the MLS required Internet Explorer is that they use technologies (such as Active-X) that are proprietary to Microsoft and so would not be available from the iPad even if a browser will report itself as being Internet Explorer.
    You can try iCab Mobile, though, and see if it will work for you:
    http://itunes.apple.com/us/app/icab-mobile-web-browser/id308111628?mt=8
    It has the ability to identify itself as other browsers, so if the site is only blocking other browsers and not depending on IE's technology, iCab might work. There could be problems, though, even if the site lets you in.
    Hope this helps.

  • Crystal Reports not displaying embedded OLE Objects in browser

    I am building an .net web application.  I am using VS2013 and have my report displaying ok in report viewer in the browser.  Only issue I have is i have embedded images, checkboxes and empty checkboxes, to signify if a user has selected certain criteria.  However, these images do not display at all.  Instead, in Firefox, 'Image' is displayed in its place.
    Please help.  How can I get these images to display without having to try and figure out how to stream it to pdf and show pdf instead of the default crystal report viewer.
    I have attached some screen shots for you as well.
    Doug

    Hi Doug,
    Lots of posts on this issue:
    http://scn.sap.com/thread/3544544
    Has most of the info for you.
    To get the runtime version you have installed add this to your app:
    string CRVer;
    public frmMain()
        // Required for Windows Form Designer support
        InitializeComponent();
        foreach (Assembly MyVerison in AppDomain.CurrentDomain.GetAssemblies())
            if (MyVerison.FullName.Substring(0, 38) == "CrystalDecisions.CrystalReports.Engine")
                //File:             C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
                //InternalName:     Crystal Reports
                //OriginalFilename:
                //FileVersion:      13.0.9.1312
                //FileDescription:  Crystal Reports
                //Product:          SBOP Crystal Reports
                //ProductVersion:   13.0.9.1312
                //Debug:            False
                //Patched:          False
                //PreRelease:       False
                //PrivateBuild:     False
                //SpecialBuild:     False
                //Language:         English (United States)
                System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location);
                txtRuntimeVersion.Text += fileVersionInfo.FileVersion.ToString();
                // check if CrsytalDecisions.Enterprise dll's can be loaded ( Anything but Cortez - managed reporting )
                if (fileVersionInfo.FileVersion.Substring(0, 2) == "13")
                    btnRasOpen.Enabled = false;
                CRVer = fileVersionInfo.FileVersion.Substring(0, 2);
                return;
        // TODO: Add any constructor code after InitializeComponent call
    Don

  • Failed to start JWS App "Keep temporary files on my computer " unchecked

    We run into a strange problem today.
    We have a JWS based app which uses version jars. If we keep the Keep temporary files on my computer " checked in the Java settings the application works fine.
    However if we uncheck it then we get an error saying it can not find the jar:
    {code}
    java.io.FileNotFoundException: https://192.168.40.242/webstart/jrcc-1.6.jar
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
    Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream
    (Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getJarFileWithoutCache(Unknown
    Source)
         at com.sun.deploy.net.DownloadEngine.getResource(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.prepareLaunchFile(Unknown Source)
         at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
         at com.sun.javaws.Launcher.launch(Unknown Source)
         at com.sun.javaws.Main.launchApp(Unknown Source)
         at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
         at com.sun.javaws.Main$1.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    {code}
    Our JNLP looks like this:
    {code}
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="6.0" codebase="https://192.168.40.242/webstart" >
    <information>
    <title>JRCC</title>
    <vendor>AAA</vendor>
    <homepage href="http://www.n-able.com"/>
    <description>Desc</description>
    <description kind="short">JRCC</description>
    <icon kind="splash" href="/images/jrccSplash.gif"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.6.0+" initial-heap-size="64m"/>
    <jar href="jrcc-1.6.jar" version="6.7.0.285"/>
    <jar href="jsch-0.1.39.jar" version="6.7.0.285"/>
    </resources>
    <application-desc main-class="com.nable.ui.jrcc.Main">
    <argument>localport:5900</argument>
    <argument>userid:50</argument>
    <argument>vnc_targetport:5900</argument>
    <argument>vnc_httpport:5800</argument>
    <argument>targetport2:10539</argument>
    <argument>language:en_US</argument>
    <argument>logLevel:5</argument>
    <argument>deviceId:1242208079</argument>
    </application-desc>
    </jnlp>
    {code}
    Any ideas or suggestions would help.
    Should it work with "Keep Temp files on my computer" unchecked ?
    Thanks

    Guess you use proxy server.
    However firstly try Solution 1. If it does not work try 2.
    Solution 1
    1. Open Java control panel, goto "Advanced" tab
    2. In tree branch "Java plug-in" uncheck "Enable the next generation Java plug-in"
    3. Restart the browser if you launch your applet in browser.
    Solution 2
    1. Open Java control panel, goto "Advanced" tab
    2. In tree branch "Security" check "Use SSL 2.0 compatible ClientHello format"
    3. Restart the browser if you launch your applet in browser.

  • Facebook Flash App (Desktop) Browser Descrepancies / OAuth Error. Why?

    I am building a flash game that I have embedded in facebook. The actionscript api to login through facebook is the Player.io (Yahoo Games Network) as3 library. Here is a link to the current game:https://apps.facebook.com/blackjackbattledev/
    It seems to work fine in Firefox browser (I'm using Windows 7), but then when I try to go to the game in Chrome or IE I get redirected to an error page with this text:
    {  "error": 
                        "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
                        "type": "OAuthException", "code": 191
    When it goes to the error page the url in the address bar begins withhttps://graph.facebook.com/oauth/authorize.... I am not sure why it is being redirected here. but the authentication shouldn't happen until the "facebook login" button is clicked so I don't know why I would be getting OAuth errors before even landing on the page. Does anyone know what could be the problem here?

    You can try this
    http://na.blackberry.com/eng/devices/features/social/facebook_download.jsp
    enter an email address that’s integrated with your BlackBerry smartphone below and click submit to have a download link sent to you. I just did it and its work.

  • Problem with Icon in App Store Browse Screen

    Hi folks,
    My app just got approved and I can search for and install it fine.  However, when I browse for it on the App Store, I get a black box where my logo should be:
    <image not shown but it's self-explanatory>
    Now it's possible that this is because my logo is black on transparent, but other boxes here show other colors (like white, light blue, etc.)  How do I set that so my icon shows up?  Also, do I need to go through another approval process to make
    this change? 
    The icon looks correct in the search screen, so this is a bit irritating.
    Bill

    Hi Bill,
    I would suggest you resubmit the app again, and make notes to the testers that you are only updating the app icon. If the issue persists, go ahead and open
    support ticket so this can be looked into further.
    Thanks,
    Jonathan
    Windows and Windows Phone Dev Center Support
    Office Store Developer Support
    Send us your feedback about the Windows Platform

Maybe you are looking for