JNLP and Applets

Hi all,
I'm a newbie to the JNLP stuff. My situation:
I have achieved to start a applet with JNLP. It seems to work. Now my questions:
1) The Java-Window in which the applet runs shows the default java cup of coffee icon (left upper icon, taskbar icon). Is there a way to change this icon?
2) When the java applets ends, the window containing the applet does not close by itself. Is there a way to tell the container window to close if applet execution ends?
3) When the applet is started the status bar of the container window shows "Applet running...". Is there a way to get rid of that?
Thank you in advance.
Best regards
Andreas Mock

First of all: Thank you for your reply.
1) The Java-Window in which the applet runs showsthe
default java cup of coffee icon (left upper icon,
taskbar icon). Is there a way to change this icon?get access to this Frame (using sequence of
getParent() calls) and then call
Frame.setIconImage(image)I have an applet binary and no chance to change the source.
I assume that all your hints are valid only if I could change the
source code, isn't it?
Would it be possible to start a kind of wrapper-applet which does all the settings and calls the "real" applet afterwards?
what do you mean by "ends" - unlike in plugin you can
call System.exit() in a webstart appletI really don't know what the last statement of the applet is.
Can I query the state with javascript in a Browser using Java-Plugin?
call Applet.showStatus("");
on your applet (to make blank)see 1)
Thank you
Andreas Mock

Similar Messages

  • Using a DLL or .so in a JNLP-launched applet

    I have a 3rd-party JAR which includes code that requires a DLL (or .so on Linux) to work and I need to use it in a JNLP-launched applet. What's required with Java 6 Update 16?
    1. I believe I need to get the DLL inside its own JAR and mark it as a native library in the JNLP. Is that just a matter of using the jar command to put it in the JAR?
    2. Must the applet then be signed?
    3. If yes to (2), will the end user still get some kind of security warning before running the applet?
    4. If yes to (3), will the warning only appear the first time the applet is run and not again after the JAR is cached?
    5. Do I need to manually "load" the DLL inside the applet's code? If not, how else does it know where to find the DLL (like -Djava.library.path in an application)?
    Thanks,
    The Gibbon

    I have a 3rd-party JAR which includes code that requires a DLL (or .so on Linux) to work and I need to use it in a JNLP-launched applet. What's required with Java 6 Update 16?Nothing different than other JRE's, what's the question?That was an introduction to my set of 5 specific questions.
    1. I believe I need to get the DLL inside its own JAR and mark it as a native library in the JNLP. Is that just a matter of using the jar command to put it in the JAR?Yes it is.Good.
    2. Must the applet then be signed?No, AFAIKWell see hear's the problem. The Google research I did before I asked the questions was confusing as some people said it needed to be signed and others didn't. My own tests have encountered security exceptions and I was trying to know if they were because the applet wasn't signed. The whole purpose of me starting this thread was to save me a lot of time messing around with these kind of problems not knowing if it's even supposed to work or not.
    See? It's all so amazing easy that making a simple test would have taken less time than this whole thread.
    This is why we talked about spoonfeeding.I don't see that it's amazingly easy when you disagree with the majority of the posts and information I read which were in themselves contradictory. It's obviously not a clear cut subject and everyone has a different opinion. I was hoping someone who had tried what I am wanting to do could just tell me definitively if it was ever going to work.
    What's even more amazing is that you didn't add any duke!I have to say I don't know anything about adding dukes, that's why I didn't do it.
    Real thrill is you're probably gonna meet some real problem depending on your actual needs! LOL!
    BTW: most of us has good knowledge of JWS but isn't such an applet expert (which, maybe, you are), so, in your case expecially, coming here with a realWorldJavaWebStartFailure would have been for sure the best approach, that's all you should really understand, IMVOHO.I realise that JWS is not often used to launch true applets but still I hope someone here would have done it and been able to share their experience.

  • Jnlp and ftp

    Hi everyone, i have a problem with my applet. I've enabled web start with NB and after the creation of the file launch.jnlp i've changed the codebase with the ftp adress i need. But when i try to launch the application this error comes out:
    com.sun.deploy.net.FailedDownloadException: Impossibile caricare la risorsa: ftp://...
    at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1347)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1487)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1465)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1568)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1496)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:201)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:450)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:235)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:186)
    at com.sun.javaws.Launcher.launch(Launcher.java:107)
    at com.sun.javaws.Main.launchApp(Main.java:405)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:252)
    at com.sun.javaws.Main$1.run(Main.java:111)
    at java.lang.Thread.run(Thread.java:637)
    sun.net.ftp.FtpLoginException: Not logged in
    at sun.net.ftp.FtpClient.readReply(FtpClient.java:231)
    at sun.net.ftp.FtpClient.issueCommand(FtpClient.java:193)
    at sun.net.ftp.FtpClient.login(FtpClient.java:516)
    at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:276)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:185)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(BasicHttpRequest.java:113)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(BasicHttpRequest.java:7Cool
    at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1159)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1487)
    at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1465)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1568)
    at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1496)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
    at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:201)
    at com.sun.javaws.Launcher.updateFinalLaunchDesc(Launcher.java:450)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:235)
    at com.sun.javaws.Launcher.prepareToLaunch(Launcher.java:186)
    at com.sun.javaws.Launcher.launch(Launcher.java:107)
    at com.sun.javaws.Main.launchApp(Main.java:405)
    at com.sun.javaws.Main.continueInSecureThread(Main.java:252)
    at com.sun.javaws.Main$1.run(Main.java:111)
    at java.lang.Thread.run(Thread.java:637) Can anyone explain me what should i do? Thanks!

    IlGala wrote:
    Hi everyone, i have a problem with my applet. I've enabled web start with NB.. Given the source editor, I recommend you validate the JNLP using JaNeLA.
    ..and after the creation of the file launch.jnlp i've changed the codebase with the ftp adress ...If this is a JNLP embedded applet, that step alone is incorrect. The codebase of a JNLP embedded applet is determined at runtime, and should be left out of the JNLP altogether.

  • Is it possible to run a website built in Java and applet from Safari browser in iPad

    Is it possible to run a website built in Java and applet from Safari browser in iPad?

    Java isn't supported on the iPad

  • JDev3.0's JSP and Applet works on NT but doesn't work on Win98, why?

    JDeveloper3.0 works fine on WindowNT machine when I run JSP files and Applet, but at home the JDeveloper3.0 cannot trigger the browser to display the result on my Windows98 machine when I run the JSP files or Applet. Why? How can I make it works for me at home. Other tools, such as J++6.0 and JBuilder work with Applet on the same machine. Who can help me?

    James,
    The JDeveloper 3.0 design time environment is not supported on Windows98. Some functions might work under Win98 but they are not supported.
    Sorry!
    Regards,
    Arun

  • Regarding communication between JSF and applet.

    Hi all,
    I have to send a array of int value from JSF to the applet method and vice versa,
    so how can I do that?
    Is there any straight forward way is there?
    Or I need to use javascript in between applet and JSF for communicating.
    If this is case can give some links so that I can go through it.
    What I need is, I have jsf table(grid) when I select a row from table, for the selected row I have to display selected row ID in applet and vice versa.
    Any suggestion or links will be appreciated, thanks in advance.
    Thanks
    daya

    thanks and sorry for late reply, let me go through the link,
    i have tried with JavaScript, i got stuck, i need to call a JavaScript method for JSF component event listener. I searched in Google but no help regarding same.
    Actually what I need is, I have JSF Component i.e. GridView(Table) and applet in a page. And for each row selection in GridView(table) I need to call a javascript method (with column value), and vice versa.
    Can you give suggestion or any link so that can proceed further.
    and i am able to communicate between applet which are included in the page
    Thanks
    Daya

  • Can the JNLP and the jarred application be on different servers

    Can the JNLP and the jarred application be on different servers? If so, how would I alter my JNLP file to include the url of the second server?
    The reason I ask this is that my app is being uploaded to a shopping cart, to be available for purchase. The problem is that this shopping cart allows ONLY one upload for each item that's available for purchase, and the vendor of my shopping cart say that for security reasons I cannot store files in other places on that server. The problem is that I need the JNLP and the JAR for download. I thought that the simplest solution is to put the JAR on a different server, and in the jnlp specify the URL of the jar. Is that possible? Or, do you see another solution?
    I appreciate your help - I REALLY need to take care of this ASAP!
    Here's my jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp
    spec="1.0+"
    codebase="http://server_where_jnlp_is/subdir/"
    href="myjnlp.jnlp">
    <information>
    <title>Title</title>
    <vendor>vendor</vendor>
    <homepage href="http://www.homepage.com" />
    <description>bla bla bla</description>
    <icon href="icon.gif"/>
    <offline-allowed/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.2+" />
    <jar href="myapp.jar"/>
    <nativelib href="libs.jar"/>
    </resources>
    <application-desc />
    </jnlp>

    I worked it out! What I did was I changed the jar href and the nativelib href to point to a different server
    eg:
    changed <jar href="myapp.jar"/>
    to
    <jar href="http://www.otherserver.com/myapp.jar"/>

  • Adf faces table and applet in jsf page navSubmit not working in IE

    Hi
    I have a jsf page with adf faces table and applet , previous / next navigation is not working for my table when i add the applet to the same page , it is working in firefox but not in IE .
    I have no clue what to change , can any one help. below is the sample code for my jsf page
    Best regards
    Srinivas
    Code follows, not sure how to format the code here
    <h:form>
    <af:panelPage title="Test Adf faces table and applet">
    <af:panelHeader text="Orders">
    <af:table value="#{bindings.Orders.collectionModel}" var="row"
    rows="#{bindings.Orders.rangeSize}"
    first="#{bindings.Orders.rangeStart}"
    emptyText="#{bindings.Orders.viewable ? 'No rows yet.' : 'Access Denied.'}"
    id="orders" >
    <af:column sortProperty="order"
    headerText="#{bindings.Orders.labels.order}">
    <af:commandLink text="#{row.order}"
    id="orderNumber"
    onclick="showOrder(#{row.order})"
    disabled="false"/>
    </af:column>
                   </af:table>
    </af:panelHeader>
    <af:objectSpacer width="10" height="10"/>
    <af:panelBox>
    <f:verbatim>
    <div id="appletDiv">
                        <applet here />
                        </div>
    </f:verbatim>
    </af:panelBox>
    </af:panelHorizontal>
    </af:panelPage>
    </h:form>

    Sorry about the format, it looked okay when i previewed it , now it looks like terrible

  • Protecting jnlp and jar files

    Hi
    I would like to know how to protect the jnlp and jar files against anyone who just types the URL in the browser Address bar.
    Thanks
    Steven

    Haven't tried, but if your jnlp app must check for updates on every startup and your files (both jnlp file and jars) are in a password protected folder (using digest or plain authentication over a SSL connection, for example) then you may be in trouble. Will JWS recognize this situation on an update check and prompt for login/password? (related to web server's folders).
    Regards

  • Package and applet

    I am reading about Zhiqun's Java Card book,
    and I wonder about the relationship between a package and an applet.
    Am I right in saying:
    1. An applet comprises one or several packages
    2. A package only belongs to one applet
    3. One package is one group context
    Hope to get your guidance.
    B.R.
    RuHE

    Refers to your assertions,
    Please help me..
    Case 1
    I have package A. Package A contains 2 class (A1 & A2 ) and 2 package (B and C).
    Then, I make 2 applet, they are applet-B (for package B) and applet-C (for package C).
    When simulationi in JCWDE, applet-B and applet-C have no problem. But, in CREF, applet throw exception and status word is 6443.
    Case 2
    When I try to include class A1 and A2 into package B and C, so package A is empy. Surprisingly, applet-B and applet-C can run in CREF and JCWDE. I don't know, what's wrong in case 1.
    Can you give me explanation or explanation about problem in above...?
    Best Regards,
    Wiwit

  • Jar, jnlp, and documentation

    i have three questions.
    1. Can image files go into a jar file?
    2. What goes into a jnlp file?
    3. Is there documentation on swing that can be downloaded and tell you about all of the different objects you can use? I downloaded one but there were know pictures and i need pictures to see what it is that i would be using.

    alright i got the above code so that it no longer displays the error. but now i get a new one. this time the error says:
    An error occurred while launching/running the application.
    Title: Text Editor
    Vendor: Justin Lafferty
    Category: Security Error
    Unsigned application requesting unrestricted access to system
    Unsigned resource: http://crazedragon.awardspace.com/TextEdit.jar
    so i changed my code to this:
    <?xml version"1.0" encoding="utf-8"?>
    <!-- JNLP File for LottoMadness Application -->
    <jnlp
         codebase="http://crazedragon.awardspace.com"
              href="TextEdit.jnlp">
         <information>
              <title>Text Editor</title>
              <vendor>Justin Lafferty</vendor>
              <homepage href="http://crazedragon.awardspace.com" />
              <offline-allowed />
         </information>
         <security>
              <j2ee-application-client-permissions/>
         </security>     
         <resources>
              <j2se version="1.5" />
              <jar href="TextEdit.jar" />
         </resources>
         <application-desc main-class="TextEdit" />
    </jnlp>and i get the same error. how can i ifx it so i can get a prototype on the web ?

  • JNLP and WEBSTART newbie

    Hi All,
    I have a few queries on this technology.
    1) What is the relationship of JNLP and WEBSTART. I thot that WEBSTART is a reference implementation of JNLP api from SUN. Heard that other companies also have implementation of JNLP. Is it true ?
    2) In the JNLP api(s) whats the use of the classes ?
    BasicService, ClipboardService, DownloadService, FileOpenService, FileSaveService, PrintService, and PersistenceService
    3) Do we have to use these classes to make an application available thru WEBSTART ? if not then when will they be used ?
    4)Does webstart and jnlp used only if your application is published on the webserver(HTTP). Can I use webstart to start an application from a shared drive/mapped drive on another PC via File protocol ?
    Pls. advise.
    Thanks,
    Net5nuts

    Hi net5nuts,
    check out the Lopica Web Start Paradise for answers to your question @ http://lopica.sourceforge.net
    I good place to start is the Web Start Link-opida @ http://lopica.sourceforge.net/links.html
    - Gerald

  • Appletviewer and applets

    Hi!
    I am using j2sdk 1.4.0 under linux. I have been creating an applet. The screen refresh is tied to a timer. However, the screen refresh gets very slow after 2 - 5 seconds after the applet has been started. If I move mouse in applets window, the refresh gets fast during that time.
    The applet code is very simple: timer calls repaint method of the applet and applet's paint method just draws new picture to the screen using drawImage.
    Anyone run into same problem? What could be wrong?
    Thanks
    Sammy

    ok but whats the problem the fast refreshing??
    if so then u have two options:
    1)double buffering
    2)if u dont need the re-paint let the java do it for u dont overide it
    denny

  • Can I use AWT and Applets in a J2EE project???

    Hi,
    I adore applets and the package AWT... And I would like to know if some way exists to integrate my applet with my application J2EE... I want to use these in the vision tier in a J2EE(EJB) project...
    How can I make that my applet acts as an observing process of my model??? If the JVM will be informed on any alterations in the model will be the JVM of the server while my applet will be being executed for the JVM of browser...
    []'s
    Ary Junior

    I have a J2EE application, for which I have a module which is used by system administrators. this module is completly written in Java swing.
    and it does talk to my EJBs.
    If you don't have a firewall in your application, then you can directly make your applications in awt, swing and applets talk to EJBs. if you do have a firewall, then just write a web-service wrapper over your EJBs and other J2EE components and use them from desktop applications.
    It seems that you want to implement a kind of a applet based monitor application for your J2EE EJBs on the server. Applets cannot directly monitor your EJBs.
    Create a new module which has a service which acts as an event listener on the server. each j2ee component on the server notify it if there is a change to them. this service, can then write the data realted to the modification on a socket which is continiously being read by the applet. So you can implement a kind of a monitor for J2ee apps with applets.
    hope this helps.
    regards,
    Abhishek.
    PS:How did you manage to adore the AWT ;-) ? I found that it sucks (good performance.. very poor lnf) ... java swing sucks too (very poor performance ... avaerage lnf).

  • Xml and applets

    I'm trying to use Sax in an applet to read an xml file. My application works fine, but when I convert it to an applet, I get errors.
    Does anybody know where I can get info and examples using Xml, Sax, and Applets? Any info would be helpful. Thanks.

    Probably nothing to do with XML. You use it in an applet precisely as you would use it in an application. You are probably running into one of the usual applet problems. Of course, this is all guesswork without any idea of what errors you are actually having.

Maybe you are looking for