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.

Similar Messages

  • 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

  • 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.

  • 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

  • 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.

  • 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.

  • ¿Does exist any tablet which runs java web start?

    I want to buy a tablet pc, for example, Samsung Galaxy, Ipad... or similar, for me it's not important the brand.
    ¿do you know if exists any tablet which can run a java web start application?
    My application is compiled with jdk 1.4 and starts by a simple .jnlp web file.

    799037 wrote:
    Thanks friend.
    Then, ¿does anybody know a particular model of tablet pc that runs JVM (and therefore JWS)?Read what I say: you need a tablet which runs a normal Windows or Linux OS. You don't run the JVM, the JVM has implementations for specific operating systems. So that is your criteria: it must be able to run such an OS. Once you have that, you can install the Java runtime on it.
    Generally that will be a laptop/netbook which can be transformed into a tablet by turning the screen. Check your favorite computer web shop for possibilities, there are a few. Not really a Java question anymore either.

  • Java Web Start 1.6 fails to start application without Java Consol on Vista

    Hi All,
    I've faced with problem related to starting my application in IE 7 on Vista SP1 using Java Web Start (JRE 1.6.0_12 and 1.6.0_13). I suppose that issue appears after 11th update of JRE 1.6 since it works fine before.
    There were set settings to indicate initial and maximal size of the Java heap in the JNLP file.
    Application consist of 2 JAR files and they are signed with the same certificate.
    When user tried to start application there is no any activity after accepting certificate. After starting application javaw.exe just disappeared from processes list without any message or error.
    When I changed default setting in Java Control Panel to show Java Console, I noticed that the application began to start. But it's not a solution of the issue, since all customers cannot be required to turn on Java console.
    I believe this is a bug in JRE as the application starts with Java console and doesn't without it.
    When I browsed the web looking for the solution or an advice I found Release notes for 1.6.0_014 where it was said that 6u14 Java Web Start failed to launch and notifies that JARs were not signed, if an insecure Java system property was specified in a sandbox JNLP file. In spite of that 14th updated wasn't used and there was no notification I tried to start application without settings for the Java heap and it worked.
    Could someone help me with advice, since the application cannot be started with default heap size settings.
    Thanks in advance.
    Edited by: vovanst on Jul 28, 2009 8:06 AM

    Hi,
    as the 6u15 just arrived and the above mentioned bug should've been fixed (though I was unable to verify through the release notes), the error is still in there.
    We have no timestamped jars, neither ours nor the bouncy castle ones, all certs are valid, ours is self signed.
    6u13 runs, 6u14/6u15 won't.
    I followed the instructions here: http://bouncycastle.org/devmailarchive/msg10415.html to no avail.
    The bcprov.jar is wrapped in its own jnlp and referred as extension from the "main" jnlp.
    The interesting parts of the stack trace are these:
    Caused by (via getCause): java.lang.SecurityException: JCE cannot authenticate the provider BC
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    Caused by (via getCause): java.util.jar.JarException: Cannot parse https://localhost:8443/deploy/bcprov.jar
         at javax.crypto.SunJCE_c.a(DashoA13*..)
         at javax.crypto.SunJCE_b.b(DashoA13*..)
         at javax.crypto.SunJCE_b.a(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
         at javax.crypto.Cipher.getInstance(DashoA13*..)
    For me it seems there's a problem with resolving the url of the bcprov.jar, which would explain the lack of a delay which normally occurs when JCE verifies the signature of the bcprov provider classes. The error pops up almost instantly.
    I'm clueless what to do now. Did Sun really achieve to completely destroy JCE provider functionality in Javaws, forcing us to use an alternative implementation?
    Patric

  • 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 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.

  • Java Web Start and JDK Logger

    The JDK logger uses the logging.properties file in the JRE lib directory. However I would like to use my own logging.properties file as part of the application that uses Java Web Start. This config file will be part of the application jar file.
    The usual way to specify the logging properties file is by using the -D parameter
    -Djava.util.logging.config.file=logging.properties
    How do I specify my own logging.properties file for Java Web Start? TIA.

    I'm trying to track down a solution to that problem too. The reason is because of the strange way webstart is creating its own log. It attaches a class: com.sun.deploy.util.LoggerTraceListener which records console messages. The way it does this is by generating its own log messages at the FINE level. If you look in the javaws.log file which is inside of the webstart cache area, you can see the result of this. On a mac this is located at: ~/Libraries/Caches/java/log
    So if the console handler is configured to printing out FINE level messages then an infinite recursion happens. If you change the console handler's level so it isn't printing FINE messages then it works. But I want to see my own FINE level messages, so that isn't a good solution for me.
    I tried setting com.sun.deploy.level=INFO in the global logging.properties, so webstart's log messages would not show up in the console. However, it appears webstart resets this level on startup.
    If you set that property using the resource loading you figured out above, it might work because that should happen after webstart does its own logging configuration.

  • Accessing libraries from java web start

    hi guys,
    I am new to forums and sorry if this question has been posed before. I am trying to access jogl.dll and jogl_cg.dll through java web start. These libraries are getting downloaded on the client machine as a jar file. I am using the following commands to access these files
    System.loadLibrary("jogl");
    System.loadLibrary("jogl_cg");
    Its giving me the follwing error
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\java\tools\jogl_cg.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at testlib.Main.main(Main.java:35)
    Java Result: 1
    I am getting unsatisfied link error as its searching for another library which jogl_cg.dll depends upon. Can anybody suggest me what other library do i need to attach and the way i am accessing the libraries using system.loadlibrary is correct or not
    I would appreciate your help in this regard.
    Thanks in advance,
    ravi ananthuni.

    Actually you're correct. There was a resource missing.
    The error was in the way I was packaging mail.jar. This archive has resources located in the META-INF subfolder inside the jar file. I'm running on Windows 2000, and I was expanding the mail.jar file, and then recreating and signing the archive using the Netscape utility signtool with the -Z option:
    signtool -k <mycert> -d <keystore_path> -Z mail.jar <expanded JAR directory>.
    When creating the JAR file, the META-INF folder is deleted and replaced with the META-INF entries for the JAR you've just created. The other resources packaged in the META-INF are overwritten, and so the signed mail.jar did not work properly -- hence the NoSuchProvider exception.
    For reference the solution is to sign the directory without creating the jar file:
    signtool -k <mycert> -d <keystore_path> <expanded JAR directory>
    and then create the jar file from the signed directory using another archiving utility. I used the command line interface for Winzip 8.0.
    cd <expanded JAR directory>
    wzzip -rp ..\mail.jar *
    http://developer.netscape.com/docs/manuals/cms/41/adm_gide/app_sign.htm#1012833
    Thanks!
    -- Eric.
    Hi,
    you suppose that the .jar files are not signed
    correctly,
    but what should have gone wrong?
    You can check that each .jar is correctly signed with
    the jarsigner tool:
    jarsigner -verify -verbose foo.jar
    If all your jars are reported to be signed, the only
    other error I can imagine regarding signing is the
    "all .jars referenced by one .jnlp must be signed
    by the same key" rule. (Read Section 5.4 of the
    jnlp 1.0.1 spec).
    javax.mail.NoSuchProviderException: No provider for
    Address type: rfc822
    files to be listed as resources, Java Web Startfails
    to launch my application (unsigned application
    requesting unrestricted access to system).I would have expected the latter error, if you
    have a signing problem.
    That first error looks like something different,
    perhaps the app is looking for a resource that
    defines rfc822 behaviour.
    Regards,
    Marc

  • New to Java Web Start technology - unable to start JWS

    I am new to JWS, and started with sample programs given at JWS product page.
    I compiled the files and created the .war file and copied that file into the DOCUMENTROOT of my Web server. Also I copied the .jnlp file into the same location. After that I created a .html file in the same location which provide a link to .jnlp file.
    Now, when I launch the html file, and click on the link, JWS window should have been launched and the application should have been started. But, what I see is the contents of .jnlp file on the browser.
    What might be the problem? Please let me know the solution...
    I am using Apache Web Server on a Win 2000 system. Also I modified the mime.types file under web server to include the following line:
    application/x-java-jnlp-file JNLP
    Thanks,
    Raghu

    Hi All,
    After some configuration changes, now I am able to start Java Web start. But as soon as web start gets started it tries to download JRE from Sun site(though I have JRE installed on my system and the PATH is set). I am getting the following message : requesting JRE 1.4.0_01 from http://java.sun.com/products/autodl/j2se.
    My .jnlp file is as given below:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0" codebase="http://system-ip/webpad.war">
    <information>
    <title>WebPad 1.0</title>
    <vendor>Sun Microsystems, Inc.</vendor>
    </information>
    <resources>
    <property name="publish-url" value="$$context/publish"/>
    <j2se version="1.4.0_01"/>
    <jar href="webpad.jar" version="1.0"/>
    <jar href="jlfgr.jar" version="1.0"/>
    <extension name="Help System"
    href="javahelp.jnlp">
    <ext-download ext-part="javahelp" download="lazy" part="help"/>
    </extension>
    <jar href="holidays.jar" version="1.0" download="lazy" part="help"/>
    </resources>
    <application-desc main-class="WebPad"/>
    </jnlp>
    Please let me know, what should I do to rectify the above problem.
    thanks,
    Raghu

Maybe you are looking for

  • How do I take off some of the ipods on my account that are no longer in use?

    I've had an iTunes account for a while and ipods have come and gone - Some of those that are gone are still registered so I can't add new ones to our account.  Does anyone know how to help?  Now, my husband has an iPhone and we can't get it to sync t

  • Battery draining without being used..

    Hi, I've got one of the new aluminium macbook, and i've noticed the battery is acting pretty weirdly. I havent yet actually used the computer without it being plugged into the mains, so the battery should remain charged, as it used to with my old ibo

  • Extended Withholding Tax for Mexico on the Customer Side

    We currently have a customer who we invoice and we know that they withhold the tax.  Any advice on how to show the VST on the invoice we send to the custer and also show the tax as being withheld? Best regards, Chet

  • Launching a subvi as a separate application

    I posted last week about opening a subvi in its own window and was able to do so sucessfully. But, I would actually like the subvi to run as it's own separate program, rather than as a subvi. Is there any way for me to do this? In the main program, I

  • Can you direct where .cfa files are stored during the creation of a project?

    Hi, I have two hard drives connected to my computer. My primary drive is a 128gb SSD drive. I attempt to keep only installed programs on that drive. My second drive is a 2TB device that I use to keep all the working files and everything else. When I