Results 1 to 2 of 2
  1. #1
    futurpc is offline Member
    Join Date
    Mar 2009
    Posts
    1
    Rep Power
    0

    Default execute on server and read from file

    hello.
    i have data files on web server that contains some values(i need to build from them chart).
    i make aplet that read information from file and build chart.
    but when i upload the applet to server , it didn't find the files.
    can you please suggest how can i make java program that will be executing on server and read there from files ?

    thank you

  2. #2
    barusk is offline Member
    Join Date
    Feb 2009
    Posts
    40
    Rep Power
    0

    Default

    you would have to jar all your files needed for that applet. then design an html with the applet embedded inside either using and <applet> or <object> tag.

    You would also need to develope a jnlp file to that initializes the the applet inside the html.

    using netbeans its really easy. just enable web start in the properties of your applet check the self sign box then select which package and class is the main class for the applet. click done and netbeans does the rest. you would just have to copy the jnlp file, the launch html, and the jar file which would be in the dist folder of your project to your webserver. pretty sure you would have to delete the codebase part of the jnlp file just open it with notepad to do that and delete that part just leave the href part with "launch.jnlp" and you should be good.

Similar Threads

  1. Replies: 0
    Last Post: 02-11-2009, 10:53 AM
  2. Replies: 5
    Last Post: 02-05-2009, 11:28 AM
  3. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  4. send/read int in a client/server app
    By dim_ath in forum New To Java
    Replies: 2
    Last Post: 01-03-2008, 02:03 PM
  5. Execute Jar file
    By barney in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 08:13 AM

Posting Permissions

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