• Post Reply Bookmark Topic Watch Topic
  • New Topic

run an java .exe file when clicked on html button  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to run an java .exe file when clicked on html button , i searched a lot but did not get answer , can any one help me.
 
bharath varma
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
its not there in that.
 
Saloon Keeper
Posts: 4039
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not possible, and we should be thankful for that for security reasons. Can you elaborate on what you are trying to achieve?
 
Ranch Hand
Posts: 51
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can with javascript. use window.open method in onClick handler:

Before that verify if path to file is correct by pasting it as url in browser
 
Saloon Keeper
Posts: 7994
143
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, no self-respecting browser is going to let you perform code execution on a client machine unless it's sand-boxed.

Mark, that will just download the file, not execute it.
 
Sheriff
Posts: 21137
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you should check out JNLP.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!