wood burning stoves 2.0*
The moose likes Java in General and the fly likes Running local Java applications from a web page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Running local Java applications from a web page" Watch "Running local Java applications from a web page" New topic
Author

Running local Java applications from a web page

Ray Muirhead
Ranch Hand

Joined: Jun 11, 2004
Posts: 44
Hi there,

Does anyone know how to run a local Java application from a web (intranet) page? The Java application itself is a wrapper that will run a user's selected diff utility, so needs permissions to execute applications on the user's local system (as far as I could tell this would rule out Java web start). The web page is in JSP, so client-side Javascript and server-side Java are both available.

Thank you!

Ray Muirhead
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Java applications run on the client from a web page are called Applets. Usually these run in a "sand box" - so don't have permission to do the things you want. However if you sign the Applet, you can give it the permissions you need.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
You can also sign a Java Webstart application so that it has full access to the client machine.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Ray Muirhead
Ranch Hand

Joined: Jun 11, 2004
Posts: 44
Thanks Ilja, that sounds like exactly what was needed!
 
Don't get me started about those stupid light bulbs.
 
subject: Running local Java applications from a web page