Launching an application from Applet

Can anyone tell me if it is possible to launch an executable file (.exe) from an applet? If so how does one do it?
Thanks!

One of the points of applets is that they are not suppose to be able to execute local programs. If you could naughty people whould create applets that formmated peoples hard drives.
however, there is something called signed applets that may or may not give you more flexibility. I suggest reading up on them.
-S-

Similar Messages

  • Launching Java applications from web pages

    Hi there,
    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    Berk Can Celebisoy

    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    you can setoff a java servlet from a webpage.Is that what you are talking about ??? activeateing a server side app ????

  • Launching external applications from web start

    Hi!
    I am currently working on a management system and I need to launch other management systems from my Java Web Start application. The other systems are either based on web applications (URLs), telnet - needs to set up a telnet session, or running shell scripts or batch files.
    URLs are ok. I am using Desktop.browse in Java 1.6 or I can use BasicService.showDocument in javax.jnlp API.
    My application may run on both windows and linux (ie its launched from the browser). It interacts with a java app on a linux server over RMI.
    How can I lauch a telnet session from my client app?
    Do I have to include apache commons.net and create a telnet module in my app or can i lauch c:\windows\system32\telnet.exe in windows (if my app is lauched on win) and /usr/kerberos/bin/telnet (if my app is lauched in Linux)?
    How can I launch an external .exe application in window and how can I launch any shell script or program in Linux?
    (same as how do i lauch telnet)
    As long as the user is prompted I can see no risk of denying these kind of things so I hope and think that this should be possible!
    PS. I have managed to do it by using Runtime.exec() when running as a non JWS application, but I cannot do it when running as JWS:
    java.security.AccessControlException: access denied (java.io.FilePermission <<ALL FILES>> execute)I dont want to sign the application either. The reason for choosing webstart was to not have to renew certificates at our customers.
    Please help.
    Thanks for taking interest and reading this.. and I hope that someone has some helpful answers for me :)
    Edited by: Tomas_Andersen on Feb 5, 2008 6:34 AM

    Do you know how to launch Java applications (not applets) from web pages ? Thank you.
    you can setoff a java servlet from a webpage.Is that what you are talking about ??? activeateing a server side app ????

  • Start application from applet

    Hi there!
    I have to start an application from applet (is not my idea, i HAVE to do it). That menas (i think) i have a little problem with the java "sand box". How can i make my program run out of it? Signed Applets? Are there also other possibiliys? Can i make as "privat person" signed Applets?
    Thank's

    This is SAX-parser for XML processing. The XML-files are local saved, also the applet and the application. The Parser application seems to start, but (sic!) there is no output, even though the application is OK...

  • How to launch an application from a website?

    Hi All,
    Can anyone tell me how to launch an application (packaged in a jar) from
    a website?
    I would like to open my application (and pass some arguments) by clicking a special banner or logo
    on a website.
    Regards,
    Stanley

    Google for WebStart and JNLP

  • Launch air application from browser like adobe connect pro

    I will like to install and launch my adobe air application from the browser, just like adobe connect pro does. Any help on this?

    Did you try ...
    location.href = url

  • Reverse-Engineer Java Class Files ---- Launch Java Application From Icon

    hi,
    is there a way to prevent java class files from being interpreted back into java source files (jad.exe does exactly that) ?
    i have a batch file to compile my java application and another to run the application. the application is run by invoking the batch file from dos window.
    i'd like to be able to double-click on some icon to launch the application.
    how do i accomplish this?
    thank you.

    s there a way to prevent java class
    files from being interpreted back into
    java source files (jad.exe does exactly that) ?There are two ways to prevent that:
    1. Use an obfuscator. Look at this page for
    explanation of what is that, and then search google
    "java obfuscator" for products.
    http://www.devx.com/tips/Tip/13580
    2. Compile your application to native code (google
    for "excelsior jet" or "gcj"). Look at this page for
    more details:
    http://www.excelsior-usa.com/jetprotection.html
    i'd like to be able to double-click on some
    icon to launch the application.
    how do i accomplish this?Do you want to do that on your computer only, or you
    need a solution to make the clickable icon on
    computers of your end-users?
    Denis.thanks to all,
    i'll see suggest sites for more details on obfuscator.
    I'd like to have the application doulbe-clickable on end-users' computers.

  • How to launch an application from java?

    Hi,
    Would anybody please help me this. I need to launch a new desktop application from my java app but I don't know how. For example, when user clicks on a "Edit" button from my java app, my app needs to launch NOTEPAD.EXE to allow user starts editing.
    Thanks a lot.
    Hung.

    try something like this for your button's action method:
            String[] cmd = {"notepad"};
    Runtime rt = Runtime.getRuntime();
            try {
                Process pro = rt.exec(cmd);
                pro.waitFor();  // wait until it's done executing
                System.out.println("Process exit code is: " + pro.exitValue());
            }catch(IOException ioe) {
                System.err.println("IOException -> " + ioe);
            } catch(InterruptedException ie){
                System.err.println("InterruptedException: " + ie);
            }

  • Run application from applet

    is it possible to run an application from an applet? is so how can i go about doing this?

    hey may be the use of Runtime can help u solve ur
    prblm....
    Runtime.exec("Application name");luck,
    jayNope. You should know some basic things before trying to give answers.
    If (unsigned/untrusted) applets could just run any other app, imagine the chaos when someone hits a rogue website containing an applet that executes something like "format c:"
    You want to run an external program on the client's machine from an applet? You can't, thank heavens. You need to rethink your design.

  • Can you Launch External Applications From Within InDesign Ebook?

    Hi all,
    I was wondering if it is possible to open an external application from within an ebook (created with InDesign) e.g. click on a link and have an external ssh client open up for instance?
    Thanks in advance for any advice.
    Regards,
    RG

    It's possible to include hyperlinks in an InDesign file and export them in an EPUB file. Since I'm not familiar with working with SSH clients (in fact, I just had to Google it to have a clue what you're talking about), is this something that can be invoked in a standard URL format? If so, you could probably include it.
    The next issue is whether the link would work. The link couldn't be used directly in any eBook reader I know of, but at least the iBook on an iPad or iPhone would switch to to Safari to let you follow a URL to its destination. But I don't think that's possible on most eBooks.

  • Launching Java Application From A Java Application

    Hello,
    I am building a compiler and would like to have run feature. The problem is I can not seem to figure out the righ syntax to run and application from my java application.
    Here is the code I am using to run an application:
    public void RunClass()
    try
    Runtime rtr=Runtime.getRuntime();
    Process pr = rtr.exec("java " + CurrentDirectory + FileNoExt);
    String line;
    BufferedReader rerr = new BufferedReader(new InputStreamReader(pr.getErrorStream()));
    if((line = rerr.readLine()) == null) { CompileMessageArea.setText("Program Running\n"); }
    while ((line = rerr.readLine()) != null) { CompileMessageArea.append(line +"\n"); }
    rerr.close();
    catch(Exception re) { re.printStackTrace(); }
    The following is an example of what the above would send to the:
    java c:\MyJava\Programs\test
    If you try to type something like that in a DOS prompt it will not work. You must first change to that directory, but I am hoping there is an easy way to change the syntax. On the other hand if you want to compile a program you can type:
    javac c:\MyJava\Programs\test.java
    and it will work just fine. This is kind of funny and I use this syntax for my compiler in my program. You would think that the same syntax would work the same for both compiling and running but it does not. So, I know that if I just know what the correct syntax that dos would except for running an application it would work.
    So, if you have the answer for me PLEASE LET ME KNOW.
    It is easily testable by keying it into the dos prompt.
    Sincerely,
    Eric Kohr

    If you want to do it that way you need to use the environment parameter of the exec() method. Use it to set your classpath to the directory that's need for the java application you are about to run... for instance.
    String[] env = new String[] {"CLASSPATH=c:\classes"}
    String command = "java somePackage.someProgram";
    Runtime.getRuntime().exec( env, command);Where your program is in the file "c:\classes\somePackage\someProgram"
    your mileage may vary :)
    You can also reflectively load classes into the running VM and invoke their main methods. This give you the ablility to control them a bit more.

  • Launching An Application From Java applet?

    is it possible to run an executable from a java applet (the executable could be in the local machine)? if it is not possible is there any other alternatives (like scripts)?

    Yes, it is possible but it violates the applet security rules. So you have to sign the applet for this to be allowed.

  • Can I launch an application from keynote?

    We have a proprietary application that we want to launch directly from our presentation - can't seem to do it from a hyperlink...any other ways to launch?

    Two options for you:
    Make sure the other app is open before you start the Keynote Presentation and then press command-tab to change to it. Then you can command-tab back to your Keynote Presentation.
    In the Keynote Preferences>Slideshow, make sure that you have the Allow Exposé, Dashboard and others to use screen checked and then you can use Exposé to switch apps.

  • Security error running launching native app from applet

    Hi,
    I am tying to write a small applet to launch a local application. I use
    Runtime rt = Runtime.getRuntime();
    rt.exec(application);
    and I get a java security error:
    Failure: java.security.AccessControlException: access denied (java.io.FilePermission C:\Program execute)
    is there a way to go around this problem??
    thanks so much for the help

    You may use the <DRIVE>:\Program Files\JavaSoft\JRE\<version>\bin\policytool.exe to edit the file.
    Where can I find the functional "java.policy" file ? In <DRIVE>:\Documents and Settings<...> or in <DRIVE>Program Files/JavaSoft/JRE/<version>/lib/security/java.policy ?
    What's the difference between the two files ?

  • How to launch map application from google map link

    Hello,
    I am looking to find a way to have the map application on an iphone launch when someone opens this link from a website on their phone:
    http://maps.google.com/maps/ms?msa=0&msid=217423717566822591594.0004bb60e527aee0 3991b&mid=1338478668
    It only seems to open the map in safari and I can't find anything about how to change this by searching the web. Any help would be appreciated.
    Thanks,
    Steve

    I do not see the parameters you are using in the list of supported parameters. Can you express that same position using the supported parameters?
    Apple URL Scheme Reference - Map Links
    http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Referen ce/Articles/MapLinks.html
    Parameter
    Notes
    q=
    The query parameter. This parameter is treated as if it had been typed into the query box by the user on the maps.google.com page. q=* is not supported
    near=
    The location part of the query.
    ll=
    The latitude and longitude points (in decimal format, comma separated, and in that order) for the map center point.
    sll=
    The latitude and longitude points from which a business search should be performed.
    spn=
    The approximate latitude and longitude span.
    sspn=
    A custom latitude and longitude span format used by Google.
    t=
    The type of map to display.
    z=
    The zoom level.
    saddr=
    The source address, which is used when generating driving directions
    daddr=
    The destination address, which is used when generating driving directions.
    latlng=
    A custom ID format that Google uses for identifying businesses.
    cid=
    A custom ID format that Google uses for identifying businesses.

Maybe you are looking for

  • Numbers SUMIF with condition based on another cell?

    This works great! =SUMIF(Food Log :: Date,"=March 20, 2008",Food Log :: Calories) But I want the condition to be based on a cell value: =SUMIF(Food Log :: Date,"=A2",Food Log :: Calories) Is there a way to use the SUMIF function with a condition base

  • Form (Dynamic Select List)

    If I have a form, and I want to display a dropdown list dynamically. How do I eliminate the duplicates? Right now, I'm seeing: Multi Multi Multi Single Single Multi Multi Jazz Jazz Jazz I want it to look Like: Multi Single Jazz

  • Acts as if system is missing

    Lately when I startup the computer it will stay the screen with the gray apple. After sometime it will restart itself and finally load up correctly. This behavior is what I would expect if it can't find the current startup disk, so it reboots to one

  • Is it possible to change my lesson store?

    I live in Switzerland but my lesson store in in German and I don't speak German. Can I switch it to English somehow? Thanks in advance for any help!

  • White box at beginning of movie

    I have an animated header that is 750 X 150. When I open up the site where I have it, a white box of that same size flashes on, then the movie plays. How can I get rid of the white box? Thanks, Brad