Java Web Start starting applet

Dear all,
I like to run heavy application as an applet and the best way is keep the jar containing the application in the client.
I am wondering whether I can use java web start or not to deploy in the client the jar with the applet and so the client doesn't need to reload the jar from server unless there's some changes in the server.
Can java web start also start the browser to start the application?
I don't see any example in the internet although in java web start documentation says it is possible.
Dani.

You don't want the 2 dukes... come Vietnam and I will invite you some beers... can you?
By the way... I know JWS is used to deploy applications.
Maybe my question was not clear... By using jnlp file you can tell jws what is the class to be launched once loaded the jar file, and so just using an URL with the path of the jnlp file in the server, the browser will reload the jar and then the application is launched automatically. What i am wondering is whether i can or not launch my applet just typing the URL where the jnlp file is and so use the same browser. Once the jar is loaded, the applet would be launched in the browser. I don't like every time the user has to use the application, first need to verify he has the latest jar file using one URL in the browser and then he has to type another URL to launch the applet...
Any ideas?
Edited by: Daniel23 on Sep 27, 2007 1:50 AM

Similar Messages

  • Java Web Console starts in "user local mode" after Sol 10 Patches

    After applying Solaris 10 recommended patch cluster, the web console on my SPARC platform starts the web console such that only the local host clients can connect via web (https://localhost:6789/). Webconsole log file states "the console instance "console" is starting in local user mode. Prior to applying the patch cluster, the log file stated "the console instance "console" is starting in user mode." How do I get it to start in regular user mode?
    Patch cluster is dated: 24-Apr-2009. I am running Version 3.1 of the webconsole. Using the webconsole primarily for adminsistration of Sun Java Directory Server 6.3.1 using the DSCC.

    Thank you for the response. Prior to implementing your recommended fix, I discovered the following Example in the man pages for smcwebserver:
    Example 3 Using SMF Property to Allow Remote Access
    The following sequence of commands allows remote access to the Sun Web Console server.
    # svccfg -s svc:/system/webconsole \
    setprop options/tcp_listen = true
    # svcadm refresh svc:/system/webconsole
    Executing the above commands restored full webconsole access.

  • Refresh an open web page on closing an applet launch from Java Web Start

    Hi
    I launch an aplication via Java Web Start from a link in a web page. I am looking to a solution to refresh my web page when I close my applet.
    Thanks in advance to give me the solution or only to let me know if it's possible or not.

    everything's possible. but this is not trivial. there is no direct connection between the html page that launched the app and the app. You can create an indirect connection by having the app notify a server process when it closes and having the page periodically polling the server for the app's status.

  • Which solution should I adopt? Applet or Java Web Start?

    Hi,
    I am developing a web application which should print cards through a printer in the client side.
    I would like to use a web start aplication to execute JNI calls in client side, but I am considering a possible solution the use of an Applet aplication to execute that.
    My question is "Which solution should I adopt?"
    Thanks a lot in advance.
    Regards.
    Paulo R. A. Sales.
    Software Architect.

    I would go for Java Web Start, since it is:
    a wonderful tool
    easy to use
    gives you full control
    you don't have to start your browser to print them cards
    But wait for better qualified responses as I haven't written an applaet since school.

  • How to add scroll function in  the applet launched by  Java Web Start?

    I have Java Web Start installed in order for the applet to launch.The applet size: width:700 height:1000
    my compuer resolution:800*600
    the applet launched by Java Web Start can only be seen partly,especially height.How to add scroll function in the applet launched by Java Web Start?
    Thanks for help.
    email:[email protected]

    You can very easily add a JScrollPane manually between the Applet and your content. Perhaps it would be beter if javaws did this automatically. In the browser, an applet can be any size. In Java Web Start an applet is directly contained within a JFrame, so it cannot be smaller than the minimum size of a JFrame, or Larger than the max.

  • Launching an applet with java web start

    Is there a way to launch an applet with java web start? That is, to have the java appelt run in a browser but get deployed with a jnlp-file and have all the benefits of java web start?
    Robert

    http://www.physci.org/jws/#jtest

  • 64bit, java web start, media framework, applets avi mov e.s.o.

    Using 64bit, (SuseLinux), nothing works i.e. webbrowsers (firefox),
    java web start, media framework, applets, avi, mov, e.s.o.
    -How to do to work around this? (I have latest jre+sdk 6)
    (note: firefox doing stupid thing when try to download plugin)
    Is it possible to write some kind of HTML-code to download an
    JAR-file from my (domain) webserver? And then: How to start it? (subject above)

    Works just fine for me, too even though the "instructions" do not mention any Mac OS or browser.
    Are you really at 10.4.8? Use Software Update to move up to 10.4.11.

  • Long time to start Java Web Client (Analyzer 6.2.1)??

    Does anyone know why Analyzer(6.2.1) takes a long time to start Java Web Client. Sometime it's even take more than 5 minutes. I think it is the Java Plug-in starting on the client computer. Any solution?

    The key to Analyzer 6.2.1 running correctly is the version of Sun Java Plugin. The ideal version (most optimal) is 1.3.0_02.Secondary to this if Analyzer performs OK once you are logged in then it could be down to the speed of your connection. The applet compiles at runtime (unlike Analyzer 5 which was a one time download). The delay in getting to the login screen could be this download.Hope this helps.Paul ArmitageAnalitica Ltd.www.analitica.co.uk

  • Problem with win2000sp3 and Java web start

    I have JRE and Java web start (1.2.0_01, build b01) which come downloading file j2re-1_4_1_01-windows-i586-i.exe from sun.
    I have win2000pro running on my PC.
    I had updated win2000 to service pack 2 and everything was fine.
    Now i decided to update to service pack 3 (in the process I also updated other components) from Microsoft and:
    1) Java applets seem to be running fine within i.e.
    2) If i try to run an application from java web start my PC freezes and I have to restart it.
    3) Staroffice 6.0, which runs on Java, seems to be fine.
    I reinstalled both sp3 and jre etc, with no result.
    Is this a known problem?
    Thanks to all.
    Maurizio

    I suspect that you have hit a known problem with Swing on Java 1.4.1 with buggy video drivers. Do you have an ATI card? They are the worst offenders. ATI released new drivers for its Radeon line today. They fix the problem.

  • Java Web Start is taking too long time to fill the bar

    Hi All,
    I am using Eclipse and using JBOSS from Remote and when I am deploying an applent with Java Web Start, it is taking a very long time for filling the bar(taking more time for verifying and downloading Application).
    Can anyone help me for fixing it.
    Thanks in Advance.

    795697 wrote:
    Hi,
    when I am deploying an Applet with the help of Java Web Start It is taking too much time for verifying and downloading the application.
    I am using Eclipse and JBOSS.
    This is the problem.
    I think you can understand it.I can't. I don't understand what Eclipse and JBoss have to do with webstart and I can't understand what webstart has to do with deploying an applet.
    Its all just completely unrelated! I'm just going to make a dumb assumption and say that it is your computer.

  • Mac OS 10.4.8 , Java Web Start and JRE version of 1.4.2 and 1.5.0 problem

    Hello,
    I've been searching internet and reading the problems related to Java Web Start and JNLP.
    But no solution I read can solve what I faced.
    I'm running Mac OS x 10.4.8 and Macintosh updates the Java in my machine so that it has Java version 1.4.2 and Java 1.5.0
    The application I'm running needs to be running in JRE 1.4.2.
    So I changed the Java Preferences so that the default Java setting is JRE 1.4.2. However, the JNLP application still running in Java 1.5.0
    So I changed the MIME and make sure the JNLP is opened with Java Web start instead. The Java Web start is for version 1.4.2. I also change its preference so that the console is opened.
    I tried to run the JNLP application once again. Java web start 1.4.2_09 starts and console open, but the Java Runtime is still showing Java 1.5.0
    I adjust the JNLP file so that the version is only showing 1.4.2_09 (ignoring all other variables of version 1.4.1, 1.4.2, etc found in the original JNLP file). That didn't work either.
    I search on methods on how to uninstall Java 1.5.0 in Mac - apple page told me that I can't do that unless I reinstall the whole OS.
    I am henceforth declare that I am stuck now !!!! Heellllpp....

    Are you up to date with the updates?
    Update for Snow Leopard users:
    Apple issued update 12 for Java for OS 10.6:
    http://support.apple.com/kb/DL1573
    Note:  On systems that have not already installed Java for Mac OS X 10.6 update 9 or later, this update will configure web browsers to not automatically run Java applets. Java applets may be re-enabled by clicking the region labeled "Inactive plug-in" on a web page. If no applets have been run for an extended period of time, the Java web plug-in will deactivate.
    If, after installing Java for OS X 2013-002 and the latest version of Java 7 from Oracle, you want to disable Java 7 and re-enable the Apple-provided Java SE 6 web plug-in and Web Start functionality, follow these steps:
    http://support.apple.com/kb/HT5559?viewlocale=en_US
    Further update:
    Apple issued this Java related security update No. 13 on February 19:
    http://support.apple.com/kb/HT5666
    and Update No. 14 on March 4:  http://support.apple.com/kb/DL1573
    http://support.apple.com/kb/HT5677
    The standard recommendation is for users to turn off Java except when they have to use it on known and trusted websites (like their bank). Javascript, which is unrelated despite the name, can be left on.

  • Java Web Start applications and Gatekeeper

    As more of our customers upgrade to Mac OS X 10.8 or later or purchase new machines we've had to deal with helping more of them work around Gatekeeper for our Java Web Start deployed applications. Many discussions found on the web show the confusion that surrounds this technology and how it interacts with Web Start apps. Most "solutions" suggest various security changes like allowing apps downloaded from anywhere. The one we most often employ is to control-click the JNLP file and choose Open. Then the dialog has an option to "install" the application anyway.
    My take-away from the discussions has been that Gatekeeper is looking for what it considers to be executable code, including JNLP files and Java applets, to be signed via codesign which is stored as an extended HFS attribute and as a result is not transferred over HTTP unless the file is wrapped into some bundle like xip or in a disk image (dmg). Neither of these are a click-and-run experience and move me from the realm of Web Start deployment to just wrapping it up as an Apple app bundle.
    Before OS X 10.8 (Mountain Lion) was released, Scott K published on the Talking Java Deployment blog an article titled Java applications and Gatekeeper where he suggested the best possible user experience comes from creating an app that is bundled with Java and signed with an Apple Devloper ID using the codesign tool. (Note this is not the same as the code signing from jarsigner in the JAR/META-INF. The article ends, edited, with a statement that Gatekeeper does not apply to command-line tools like java, javac, javah and so on. It has been my experience that it does seem to apply to javaws or whatever is used on the Mac to launch a Web Start app from a JNLP file. It is as if Apple has said they don't trust the Java security model for downloaded dynamic code and are adding an extra restriction that seems to severely limit the "click-and-run" functionality of Web Start or applets.
    Is there anything I can do to get a JNLP file to "just work" for Mac end users like it use to before 10.8 / Gatekeeper?
    Is there anything in the works from Oracle to fix this issue?
    Jacob

    Probably not the case here, but considering it is a development machine it is something to check. The symptoms you describe are exactly what happens when you setup JWS applications to be remotely debugged, and specify suspend=y. In that case, before the application launches, it waits for Eclipse (or some other development environment) to connect to it. I do this all the time and what happens before Eclipse attaches to the process is exactly what you describe. Check the JAVAWS_VM_ARGS to see what VM parameters are being used.
    Jake

  • Java Web Start and Remote Scripting Incompatibility?

    I recently installed the Java Web Start plugin to Internet Explorer, in order to run Sun's version of the Java Virtual Machine.
    After the install, I am receiving errors when trying to run a web application that uses the Remote Scripting technology for client-server communication.
    I think this might be related to the Java 2 security model, which requires all Java applets to be signed. The Remote Scripting client-side component seems to be unsigned, so that may be causing my problem.
    Does anyone have a solution for this problem?
    Any help is greatly appreciated.
    Best Regards,
    Nicole Roberts

    Hi,
    I had the same problem on a unix server!
    The new build of IE on Windows 2003 from Microsoft that excludes the JVM (Java Virtual Machine), works fine with the JVM coming from Sun, except for the following.
    We are experiencing problems, that if we are not logged in as Domain administrator, we get an Apache security prompt to log on, as soon as the RSProxy class is used. It seems that the Class is not picking up the current session, but tried to create another session, without a userid, and then prompts you for your login details.
    We still cannot figure out, why it does not do it with the Domain Administrator account.
    Can someone please have a look into this.
    I think there is a simple configuration problem somewhere, that will allow seamless integration with Sun's JVM.
    I could resolve it so far by loading the Microsoft JVM back into Win2k3 theough the Visual Studion 6 Cd's, but I don't like the idea of that!

  • Java Web Start and Policy File

    Hi,
    I've a problem for Java Web Start (JWS) in working with Policy File.
    I like to apply a policy file for a JWS application to fine tune the secuirty setting instead of granting permission in JWS.
    For an applet environment, I can apply policy file like this:
    appletviewer -J"-Djava.security.policy=all.policy" writeFile.html
    However, in JWS environment, I try to apply in JNLP file as below but fail:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://130.18.52.226:8080/testing/"
    >
    <information>
    <title>JWS JFrame App</title>
    <vendor>Java Developer Connection</vendor>
    <homepage href="http://java.sun.com/jdc" />
    <description>Demonstration of JNLP</description>
    <icon href="hsbc.gif" width="32" height="32" />
    </information>
    <resources>
    <j2se version="1.3*" />
    <property name="java.security.manager" value="x" />
    <property name="java.security.policy" value="testing.policy"/>
    <jar href="testing.jar"/>
    </resources>
    <application-desc main-class="JWSJFrameApp" />
    </jnlp>
    The error message like this:
    Java Web Start Console, started Tue Sep 03 09:59:36 CST 2002
    Java 2 Runtime Environment: Version 1.3.0 by Sun Microsystems Inc.
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.manager write)
    java.security.AccessControlException: access denied (java.util.PropertyPermission java.security.policy write)
    Could anyone please help on this!
    Many thanks!
    Regards,
    Simon Ho

    There are two problems with what you are trying to do.
    First, setting a property PROP=VALUE in the jnlp file does not mean that java will be launched -DPROP=VALUE, instead, javawebstart will call System.setProperty(PROP,VALUE) before your apps main() is called. The difference is, the property will not be set at the time the VM is initialized.
    Second, the javaws security policy will not allow you to set arbitrary properties in an unsigned application. Only properties begining with "jnlp." or "javaws." (and possibly a few other specific props known to the native javaws code) can be set in an application unless <all-permissions> is specified and the app is signed.

  • Java Web Start and Cookies

    Hello All,
    We have the following scenario
    1) A user logs in to our website. The session information for the logged in user is maintained in the cookie.
    2) The User clicks the jnlp link to invoke the applet.
    3) The Java Web Start gets activiated and it tries to dowload the JNLP file.
    4) The Web start is not able to download the file since it cannot send the required cookie to the webserver and the webserver is denying the access.
    Is it possible to pass the existing session information (The session information is stored in cookie) from the browser to the java web start, so that the java webstart will pass the cookies for each subsequent access.
    Thanks and Regards
    Jagadeesh

    I have the following:
    Web page has a link to a servlet which dynamically creates the JNLP file.
    The servlet that produces the jnlp requires basic user authentication.
    When the link is click the Logon dialog appears. User logs in and the jnlp gets dynamically written. When the JNLP file is done being created by the servlet, this cause WebStart to execute the newly created jnlp masterpiece. Since WebStart does not share sessions with the browser, webstart causes the Logon dialog to appear again Forcing the confused user to re-login. What is up with that?
    Does Sun have a solution for this? Is noone doing authentication using webstart. This has to be a definite problem. Sure we could tell the users to login twice, then they would simply stop using our application.

Maybe you are looking for