Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6897617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:11:30+00:00 2026-05-27T07:11:30+00:00

When I am going to click on button, I want to execute jar file

  • 0

When I am going to click on button, I want to execute jar file which is on server.
Is it possible to execute jar file onClick event of button?


Note: Jar is on server. Jar functionality is that, it edit some files which are in client machine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:11:31+00:00Added an answer on May 27, 2026 at 7:11 am

    Well, theoretically you can, but you should have an idea of what all this implies. If you add a “button” into your JSP page, like some Javascript widget or an <input type=button"/> all this will arrive in the user’s browser as HTML code. When the guy clicks it or does something in that HTML page (which was generated by the JSP) all you (the developer) can do with it is send it asan HTTP command back to the server (like when he clicks the button you can call the link http://myServerAddress:8080/myUrl). Now in the servlet or whatever dynamic component you have answering for that URL you can do whatever you want, load a jar file, call some method from some class inside that jar, you can even use the Runtime to execute an OS command (tho that would no longer make your app OS agnostic) like , “java -jar myJar.jar”. Then you can return the response of that execution/call back to the user by either sending back the console output, or redirecting/forwarding him to a different page, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to change the BackgroundImage of a button when you click once, and
I've got a gridview/formview, master/detail relationship going on. When I click a button in
I have a UIViewController that I load every time I click a button: NearMe
On the previous page, the user is going to click a button from a
I have an activity which contains a Button,Whenever user click on button, we create
I want it so I can click a button and it changes the value
i am having an custom alert view which pop ups on a button click
I like the Gmail facility of going to the next message using right click
<a href=http://twitter.com/theusername>Click</a> For some reason, it pops up the download instead of going to
Going mad now. I have a MVC solution that i've upgraded from MVC 1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.