Results 1 to 6 of 6
  1. #1
    srilatha is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

    Default How to write the JNLP appln for installing the note.exe file in the client location

    hi all

    i am new to this group
    how to write the JNLP progame for reading and installing the notepad.exe file in the client location using JNLp

    I am not able to write, i wrote some code for the that is not properly not working.
    can any body tell me plz
    advance thanks to all.

  2. #2
    fxRichard is offline Member
    Join Date
    Dec 2008
    Posts
    64
    Rep Power
    0

    Default

    Your question doesn't make a lot of sense the way it is worded so I am going to go out on a limb and try to answer what I think you are saying. JWS and JNLP runs in a sandbox UNLESS you sign your code and request full permissions.

  3. #3
    srilatha is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

    Default

    Can u provide any body small example how to write JNLP program( sample code for me )
    I am not able to write I am now to this JNLP

    for requirement is if the sever have the one application running ,
    in the client side we have to go every time it is risky process , once if we will give the one URL if the client clicks that link sever side software should be installed into the client side , if any midification are done in server side that should be update into the client side automatically.

    can any help for this , small example code

  4. #4
    fxRichard is offline Member
    Join Date
    Dec 2008
    Posts
    64
    Rep Power
    0

    Default

    Java Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
      codebase="http://my.website.com"
      href="some/location/thisFile.jnlp">
    <information>
      <title>App Title</title>
      <vendor>Your company</vendor>
      <homepage href="www.MyWebsite.com" />
      <description>Description of what this app does.</description>
    </information>
    <offline-allowed/>
    <security>
      <all-permissions/>
    </security>
    <resources>	
    	<jar href="some/location/someSignedJar.jar"/>
    	<j2se version="1.6"/>	
    </resources>
    <application-desc/>
    </jnlp>
    This is an example, you need to read the JNLP spec to make sure you include the tags you need to run your app. In this example the file "/some/loction/someSignedJar.jar" on your website MUST be signed with a certificate in order for it to work.
    Last edited by fxRichard; 07-26-2009 at 04:56 PM.

  5. #5
    srilatha is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

    Default please check this

    ---------
    <html>
    <body>
    <center><br><a href="MyQuiz.jnlp">IDEA Launch Appln</a></center>

  6. #6
    srilatha is offline Member
    Join Date
    Jul 2009
    Posts
    8
    Rep Power
    0

    Default

    HI ,thanks for u r reply
    plz check my code i wrote but when i am running i am getting bellow error
    Error: unexpected exception:java.lang.reflect.InvocationTargetExcept ion


    java.lang.reflect.InvocationTargetException

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NoClassDefFoundError: FlashTest$ShowAnsListener
    at FlashTest.buildGUI(FlashTest.java:51)
    at FlashTest.main(FlashTest.java:139)
    ... 9 more
    Caused by: java.lang.ClassNotFoundException: FlashTest$ShowAnsListener
    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 java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 11 more
    Attached Files Attached Files

Similar Threads

  1. to run jar file without installing jre
    By Md Saim in forum Web Frameworks
    Replies: 10
    Last Post: 08-29-2011, 11:12 PM
  2. Transferring a .txt file from 1 location to another
    By dbashby in forum New To Java
    Replies: 2
    Last Post: 04-15-2009, 06:22 AM
  3. note while compiling
    By j2vdk in forum New To Java
    Replies: 3
    Last Post: 09-04-2008, 12:52 AM
  4. Replies: 0
    Last Post: 11-14-2007, 07:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •