Opening Local Apps through a Java web app

Hello, I have a local application on my C: drive that I would like to launch by clicking on a link in a web app of mine. Can anyone point me in the right direction of how to do this? For instance, if I had the following:
C:/Program Files/My App/app.exe
How would I launch this from a completely separate web app that I have developed?

By letting the link open a website that has a signed applet that has the premissions to invoke Runtime.exec(). In other words: no conveniant way, thankfully.

Similar Messages

  • I can't open or save file with Java Web Start

    Hi,
    i can't open or save file with Java Web Start:
    import java.io.*;
    import java.util.*;
    public class MetaDataFileCreator {
    public String fileNameSpace = null;
    public String fileName = null;
    protected Properties file = null;
    public MetaDataFileCreator(String fileNameSpace, String fileName) {
    this.fileNameSpace = fileNameSpace;
    this.fileName = fileName;
    public void createMetaDataFile() {
    try {
    System.out.println("file METADATA");
    ClassLoader cl = this.getClass().getClassLoader();
    String nameFileMetaData = fileNameSpace + fileName + ".txt";
    FileOutputStream fileOS = new FileOutputStream(cl.getResource(nameFileMetaData).getFile());
    file = new Properties();
    file.setProperty("aaaaa", "aaaa");
    file.store(fileOS, "");
    fileOS.close();
    } catch (Exception e) {
    System.out.println("Error writing metadata-file: " + e);
    System.exit(1);
    e.printStackTrace();
    I have try also to open a file like this:
    ClassLoader cl = this.getClass().getClassLoader();
    file.load(cl.getResourceAsStream(nameFile));
    also like this:
    try {
    fos = (FileOpenService)ServiceManager.lookup("javax.jnlp.FileOpenService");
    fss = (FileSaveService)ServiceManager.lookup("javax.jnlp.FileSaveService");
    } catch (UnavailableServiceException e) {
    fss = null;
    fos = null;
    System.out.println("Error with JNLP");
    System.exit(1);
    if (fss != null && fos != null) {
    try {
    // get a FileContents object to work with from the
    // FileOpenService
    FileContents fc = fos.openFileDialog(null, null);
    //FileContents newfc2 = fss.saveAsFileDialog(null, null, fc);
    // get the OutputStream and write the file back out
    if (fc.canWrite()) {
    // don't append
    os = fc.getOutputStream(false);
    } catch (Exception e) {
    e.printStackTrace();
    also like this:
    File f = new File((System.getProperty("user.home")+"x.txt").toString());
    FileOutputStream fileX = new FileOutputStream(f);
    OutputX = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fileX, "UTF8")));
    OutputX.println(....
    but it doesn't work with Java Web Start.
    Can someone help me?
    How can I open or save file?
    thank you.
    Sebastiano

    Did you specify <all-permissions/> in your JNLP file? Did you sign your code? What error are you getting?

  • Maximum Open Cursors Exceeded - Oracle 9 & Java Web Server 6.1

    We are facing this problem - maximum open cursors exceeded after migrating our application to Sun Java System Web Server 6.1
    We were not facing this problem with our earlier web server
    Can anybody let us know - is there any setting we need to do to avoid this.
    The current setting for this attribute in the database is quite huge - close to 2000
    One of the "webservd" sessions, (web server user) exceeded this value

    See my reply in your duplicated post:
    http://swforum.sun.com/jive/thread.jspa?threadID=57989&messageID=220483#220483

  • Open an applet through a java code

    i have developed a java frame application. i want to open in addition to the frame an applet to display some info..is it possiblle to call a runtime.exec command to open the applet.
    The applet is not part of the executing code

    import java.io.IOException;
    String appviewPath="C:/Program Files/Java/jdk1.5.0_08/bin/appletviewer.exe";
    String url="<url>";
    try
        Runtime.getRuntime().exec(appviewPath+" "+url);
    } catch (IOException ex)
        ex.printStackTrace();
    }I couldn't manage to obtain the path of appletviewer through environment vars because it is only in the jdk and not jre (on my system anyway).

  • Unable to open .shtml file in Sun java web server 6.1

    Hi,
    I migrated my application from iPlanet 6.0 to Sun one web server 6.1 and after that I'm unable to open any .shtml file from my browser. This issue is not with all browser but only with few.
    Ex : It works fine with firefox 1.x but fails with firefox 2.x
    I tried adding the shtml_send Init parameters in Magnus.conf and edited the obj.conf, and my mime type has the following entry for shtml:
    type=magnus-internal/parsed-html exts=shtml,jbhtml
    Any help is appreciated
    Thanks
    SS

    What is the exact version of Web Server you are using? Should be in the error logs or try $start -version
    It would be faster if you can capture and cut and paste the data that is sent between firefox and Web Server in both the cases using /usr/sfw/bin/ssltap (http://www.mozilla.org/projects/security/pki/nss/tools/ssltap.html) or ethereal when you try to view that shtml file. We can see if its any different in both cases and try it from there.
    Also verify the steps given in http://docs.sun.com/source/817-1832-10/pgshtml.html
    mime.types should have :
    type=magnus-internal/parsed-html exts=shtml
    obj.conf should have :
    Service fn="shtml_send" type="magnus-internal/parsed-html" method="(GET|HEAD)"
    When you activate parsing, magnus.conf should have :
    Init funcs="shtml_init,shtml_send" shlib="install_dir/bin/https/bin/Shtml.dll" NativeThreads="no" fn="load-modules"
    Shtml.dll (or libShtml.so on UNIX), is located in install_dir/bin/https/bin for Windows, and install_dir/bin/https/lib for UNIX.

  • Java Web Start opening code not app

    For the past year I have had no problems opening up *.jnlp files with Java Web Start. Starting last week when clicking on any link to launch a Java app I get the code opening up in TextEdit.
    For example when I click on 'Welcome to Web Start' on this page: http://developer.apple.com/java/javawebstart/ I see (just to start)
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+" codebase="http://developer.apple.com/java/javawebstart/apps/welcome" href="JWS_Demo.jnlp">
    <information>
    <title>Welcome to Web Start!</title>
    <vendor>Apple Computer, Inc.</vendor>
    <homepage href="http://developer.apple.com/java/javawebstart" />
    <offline-allowed />
    Can anyone please point me to a way to repair my Web Start installation? I give a lot of webinars and they all require that Java work.

    ISSUE
    After the Java update, jnlp files are opened by TextEdit and not Java Web Start.
    SOLUTION
    1. Find the jnlp file on your machine
    2. Get Info (Cmd+I)
    3. Expand the “Open with” section
    4. Select “Other”
    5. Navigate to Macintosh HD/System/Library/CoreServices/Java Web Start
    6. Check the “Always Open With” option
    7. Click the “Add” button
    8. Click the “Change All...” button

  • M trying to open a java web site its not opening and server goes to java website...??

    m trying to open a java web site its not opening and server goes to java web sites ...........???

    Java is not available for iOS devices, so the site you are trying to access won't work.

  • How can I upload a file to the server where I save the Java Web Start Files

    Hello,
    Does anyone knows how to upload a file to the directory where I save the JAR files through the Java Web Start program. Thanks you

    ftp

  • Java Web Start keeps asking user to accept signed app

    When in select "run" in the java web start security popup for a signed web start application I expected that Java Web Start would remember my decision since the app i supposed to be installed and run locally the next time? But next time I run the app Im asked the same question. So far Im only using a self-signed certificate - will web start react differently when I use a real certificate? I do have the option to generally accept the certificate in the popup but I was hoping java web start would remember my decision on a per application basis?

    Did a quick search on your post for '?' and did not find one. Did you have a question?
    BTW - when posting code or code snippets, XML/HTML(/JNLP) or input/output, please use the code tags as described on the 'sticky post' on the top of the forum thread listing. It is not too late to edit your initial post to do that (and you might as well add a question while you have it open for edit).

  • IPhone no longer connects to my computer over local network through apps

    I've been trying to fix this for months. I've worked with technology and Apple computers for three years. I am by no means an expert but you can believe me when I say I've tried all the basics.
    I first noticed the problem using FullControl. I liked to use this first thing in the morning. One morning it wouldn't connect, "Error: Connection error (22)." I hadn't updated or changed anything. I actually put my computer to sleep the night before using the app! I was on the local network. My computer was running the helper. My computer was showing up as a device in the app. But it would not connect. I figured something was wrong with the app.
    So I opened up Splashtop 2. My iMac showed up in my list but with a satelite icon informing me it was not connecting on the local network. I was still on my wifi as was my computer. I used it earlier that week.
    I checked out the support pages for both apps. I updated everything. I turned off, on, and checked the connections for my firewall. I turned off my security applications and followed guides to remedy blocks they might cause. Nothing worked.
    I checked Apple discussions and found people having similar issues but no one had a fix. A few found success but nothing worked for me.
    A few days later I went to use my Remote app. My iTunes Library showed up in the local devices but it would not connect, "Remote can't connect to your iTunes library. Check your network settings and try again." I checked. Tried again. "Could not find [my] Library." I went back to the devices and connected to my Apple TV 2 instantly. I tried connecting my iMac with the Apple TV and found no issues. Each communicated with the other fine. I tried to connect Remote to my iTunes again but it failed.
    I verified and repaired my permissions. I thought the "SUID... ARDAgent.app... [permission] has been modified and will not be repaired" could've been the problem but Apple and these Discussions assure me that this is normal and not a problem.
    I recently downloaded Air Playit and ran into the same problem. I set it up on my computer following the instructions. I opened the app. The app showed my computer as a "Computer on Local Network" but when I tried to connect to server, "Connect Server Failed: Cannot connect the server, check the IP, Port and try again." I did and it didn't connect.
    Save for this new app, everything worked before. Nothing has worked since that morning FullContol failed (including the new app).
    Is there an answer out there?!
    iPhone 5 iOS 6.1.4: updated as of 06-29-2013
    iMac 2007 OS X 10.6.8: updated as of 06-29-2013
    FullControl (Full version)
    Splashtop 2 (Full access)
    Remote
    Air Playit
    - All apps and applications updated as of 06-29-2013

    Intego's VirusBarrier X6 was blocking my iPhone's connection.
    I saw that the program was blocking attempts to connect and took the address off the Blocked list. I instantly connected through everything again. It turned out to be a major oversight and easy fix!
    If anyone else is having similar issues, check your AntiVandal software and make sure your devices are not being blocked.

  • How to convert existed standalone APP to java web start app?

    hello:
    I didn't find useful information about how to convert an existed java
    app into app which can be launched using java web start from the sun java developer's guide.
    I have designed a simple java applcation and want to lauch this program with
    java web start techniques(on local machine only). Is there any easy way that i could convert my program to the one which support java web start, so i can double click the *.jnlp file to launch my java applcation.
    thank you
    -Daniel Mark

    i just found a great place to resolve my question.
    If you had the same question, please refer to
    http://www-106.ibm.com/developerworks/java/library/j-webstart/
    thank you
    -Daniel

  • Screen Saver crashing my Java Web Start app

    I've written a Java Web Start time tracker application that all employees run from the time they start work until they leave at the end of the day. The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. The application window continues to show the screen saver image and the title bar says "Not Responding". In an attempt to get some clues, I had one person keep the java console running - but nothing new appears in the console.
    I've personally tried crashing the app by using screen savers, but I cannot duplicate the problem. I've also tried letting my computer go into standby mode and I've let it hibernate. But every time, the application continues running as soon as I log back in.
    Any ideas as to why the screen saver could trigger a problem like this for some users?

    >
    I've written a Java Web Start ... . The only problem is that there are a couple of people who from time to time find that the application has crashed when they unlock their Windows screen saver. >What screensaver(s)? Some important distinctions might be
    - Windows standard savers (the savers supplied with the OS, if so, do they all use Open-GL or all use...?)
    - Windows compatible, 3rd party savers.
    - Saverbeans screensavers (Java based). E.G. <https://screensavers.dev.java.net/>

  • Java Web Start.app, apparent problems.

    I have been experiencing many small problems during web browsing, etc. and have received terrific help from Barry Hemphill but he is unable to help on Java matters.
    When I open Java Web Start app. I get the following message; "You cannot open Java Web Start.app because it it is damaged or incomplete". This is possibly, at least by the app's. name the cause of my troubles, though I am guessing. Can anyone guide me to where I can download and re-install the app. to see if it does overcome my problems. A typical one of them is happening as I type, the screen characters are lagging heavily behind my two-finger typing.
    Brian Hope
    MacMini Mac OS X (10.4.10)

    Hi Brian, Happy Holidays!
    The Java Web Start software is a component of the Java Runtime Environment (JRE) and is installed with the JRE.
    http://java.com/en/download/faq/java_webstart.xml
    See also...
    http://www.digistamp.com/t3runMac.htm

  • Java console doesn't launch when starting Java Web Start app from Firefox

    Updated my Linux desktop from RHEL to Fedora 12 with resultant upgrade of Firefox to 3.5.9 and now when I launch our Java Web Start application, no Java console appears. The Java Control Panel still shows "Show Console" as set. My app uses Java 1.5 which I have installed on my desktop.
    What do I do to properly configure my browser/desktop to support use of the Java console?
    Please help, I need to debug our app!
    Ilane

    IlaneMarie wrote:
    ..Please help, I need to debug our app!Cannot tell you the answer to your FF hassles (because I have no idea why you're seeing that behaviour(1)), but note that you might be able side-step FF by launching a JWS app. using the javaws tool directly from the command line or an Ant build file.
    1) Though you might try rebooting the machine if any installation/configuration changes have occurred since last boot.
    Also note that many problems with JWS apps. can be sorted be checking the JNLP using JaNeLA.

  • Opening a file from a java app (not applet)

    My program can't find the text file I'm trying to open in my stand-alone java app. I am specifying it like this:
    File filename = new File("myfile.txt");
    FileReader = new FileReader(filename);
    It is in the same directly as the class files. It won't find it when it's in a jar file either. I had a similar problem with an applet a lont time ago, but that turned out to be a security issue, which I assume normal apps don't have.
    So, what's up with this?

    If system become larger, there are duplicated files
    can be found in different directories.
    Using classpath may cause problem, if there are
    duplicated file name.
    If you are coding, you should know exact location of
    the file to be opened.
    "system become larger" - huh? You control the classpath on a per-app basis, not one huge monolithic classpath containing all jars/folders for all apps.
    It's common, well-designed practice to use the classpath. It's bad practice to hard-code directory names and expect all deployments of the app to follow the same directory naming convention. I wouldn't want you to dictate to me where to put the file on my hard drive. I should be able to install it anywhere I want, and let it find it (via the classpath, in this instance).

Maybe you are looking for