Results 1 to 3 of 3
  1. #1
    khsameer is offline Member
    Join Date
    Nov 2009
    Posts
    1
    Rep Power
    0

    Default run a jar file from javascript/html on click of a button

    Hello

    I am having a .jar file and i want to run this file on click of a button from HTML/JavaScript.
    the JavaScript is having some buttons which on click gets the data from database(sql) n stores it back in database(sql) using AJAX.
    Java program is having a small GUI but i don't need to click or select anything it runs and saves the output in database(sql).
    if not can i run the .Java file which contains the main method
    Is it possible, coz i am a newbie in Java.

    can you please help me, give me ideas or suggestions, because this thing is making me crazy....

    Regards
    Sameer

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Use JSPs and servlets.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    First of all, Java and JavaScripts are totally two different languages. And also I'm confusing with this.

    Quote Originally Posted by khsameer View Post
    the JavaScript is having some buttons which on click gets the data from database(sql)
    What about this?

Similar Threads

  1. How we can open a file with a click in button
    By kostinio in forum AWT / Swing
    Replies: 2
    Last Post: 11-01-2009, 04:46 PM
  2. Generate csv file on a button click
    By violeta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 09-27-2009, 02:54 AM
  3. deselecting a button after the click.
    By ramsrocker in forum New To Java
    Replies: 10
    Last Post: 02-15-2009, 06:52 AM
  4. Double click radio button
    By mandragora in forum AWT / Swing
    Replies: 11
    Last Post: 11-10-2008, 11:06 AM
  5. How to perform some event to button click
    By eva in forum AWT / Swing
    Replies: 2
    Last Post: 01-16-2008, 12:27 AM

Tags for this Thread

Posting Permissions

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