Link/shortcut to a file, using jeditorpane

i'm interested in finding out if there is a way of using a link to execute a program, instead of connecting to a web page. (the same idea as a shortcut on the desktop)
e.g.
instead of having <a href = "some web site">link</a>
have <a href = "a file on harddrive">link<a>
i'm looking to run a swing application that will have a link that will go to an email program. (such as outlook)
Anyone know how to do this?

Something like this.
Process p = Runtime.getRuntime.exec("yourexe.exe");
p.waitFor()
Then you can see output and errors using Process.getOutputStream and Process.getErrorStream
Be sure to capture both streams to read from. I've had cases where it blocks when waiting on the error stream. Just test test test. I have several applications that do this type of thing on Windows95 and win95 doesn't handle Process very well. Win2K works pretty well. Linux/Unix always.
hope this helps
-ken

Similar Messages

  • Mozilla firefox get hang , when i click on a link to download a file using Interenet Download manager. any solution??

    When i click on any link to download a file ( software, document etc.) using idm , the firefox get hang for sometime till the download dialogue box don't come. any solution to this problem.??

    Try to start Firefox in [[Safe mode|Safe mode]]. This mode disables all extensions, user customizations, hardware acceleration, etc. temporarily for diagnostic and troubleshooting. If Firefox works find in Safe Mode, then this is likely an add-on issue. Restart Firefox in normal mode, then type "About:addons" (without the quotes) in the address bar. Disable your extensions one by one, restarting Firefox between each one, until you find the trouble maker. Once you do, you can disable that add-on and report the issue to that add-on's developer.
    A few other basic trouble shooting things you can try is this:
    Run all Windows Updates, install all needed service packs, etc.
    Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
    Update all your plugins (Flash, Java, etc.): [http://www.mozilla.org/plugincheck/ http://www.mozilla.org/plugincheck/].
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. You can uninstall this program after you clean off any infections.

  • Can I create multiple links to the same file without duplicating file?

    does anyone know if it is possible to create multiple links to the same file using iWeb without the program automatically making multiple copies of that file in the published output? It seems that one file is created for each link.
    Thanks!

    Hi Franz,
    have a look at the second method on this page
    http://alyeska.altervista.org/en/iWeb_Downloads.html
    see if you understand how it works (if you don't, please ask me)
    Regards,
    Cédric

  • To download a file using Ftp.

    I am making a web application using struts framework . now on one jsp page i'll have to give the list of files on the ftp server and link to download those files using ftp from the ftp server.
    I have made functions using jakarta commons.net library by which i m able to show the list of files on jsp page but i m not able to give download link bcos using the function the file is downloaded on the server on which my application is running . and not from which i am accessing through the browser.........
    If any one have any idea pls let me know...........?
    Regards,
    Neeraj.

    If it's anonymouse FTP to download from the server, just make the page have a link to the FTP site..
    some file

  • How to download a file using servlet

    I have a problem about downloading a file using a servlet.
    Anybody can help me?
    Thanks

    I am assuming that you want to write a servlet that, when invoked by a user (for instance, through a URL link), will download a file using the "save as" dialog (on Windows, for example) in the user's browser.
    In such a case, all you need to do is get the OutputStream from the response object, set the proper MIME type header, and write the file. Here is an (untested, not even compiled) skeleton.
    public class MyServlet extends HttpServlet {
    protected void doGet (HttpServletRequest req, HttpServletResponse resp)
    throws ServletException, IOException {
    ServletOutputStream out = resp.getOutputStream ();
    resp.setContentType ("application/x-foobar");
    while (/* whatever */) {
    In this loop, you generate your "file's" data.
    You can compute it on the fly, pull it from a database,
    read it from a "real" file, or any other means you can dream up.
    The sample line below just writes some of the data (for example,
    a byte array) to the user's browser via the output stream out.
    out.write (data);
    out.flush ();
    Go to http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
    for the JavaDoc on the classes used.
    Cheers!
    Jerry Oberle

  • Disple html using JEditorPane

    I want display html file using JEditorPane
    but I become an exception
    java.net.MalformedURLException: unknown protocol: e
    what schould be the problem
           import javax.swing.*;
           import java.net.URL;
           import java.io.File;
    public class Browser extends JFrame
          JEditorPane  ePane = new JEditorPane();
          public Browser(){
              this.setBounds(200,50,700,650);
              this.setLayout(null);
              ePane.setBounds(50,20, 600,500);
              try {
                       File file = new File("xx.html");
                       String ss = file.getAbsolutePath();
                     URL url = new URL(ss);
                     ePane.setPage(url);
                 } catch (java.io.IOException ex) { ex.printStackTrace(); }
              this.add(ePane);
    }  

                   File file = new File("xx.html");"xx.html" lacks a protocol, like "http" or "ftp". But anyway, why not just use File.toURL()?

  • JEditorPane - How to display XML Linked HTML File in JEditorPane ?

    Dear Friends,
    I have a HTML File consisting of stylesheet, xml linked (for data) and with headers, footers...
    When i called a ordinary html file using setpage property of JEditorpane..it's working no problem...but when i call the html file having xml linked or buttons...it's not properly displayed....
    If anybody hits this problem....pls...help me....
    Regards,
    V.Prasanna

    If you only need to display it, consider your HttpServletRequest just as byte stream. :) Just read from ServletInputStream and write it back into ServletOutputStream of HttpServletResponse.
    If you want to process incoming XML, please give some details first, what exactly you want to do. :)

  • Linking an exe file thru JEditorPane

    Hi All,
    I would like to link an exe file thru a JEditor Pane...
    I have constructed a gui for an application using Swing and want to link a local exe file
    thru it ie i would like the exe file to execute when i click on the link provided in the JEditorPane.
    How should i go about it?
    Thanx...

    Are you talking about linking to your EXE in terms of a compiler link or just a communication link so your EXE takes care of the functionality and your java program provides the GUI only ?
    I do not know if a compiler link is possible. I've never seen anything that allows you to do it.
    If you just want your EXE to provide functionality then it is possible, but would take a fair amount of work. You can open sockets in both the EXE and Java programs and send messages back and forth. The GUI could request work to be done by the EXE and the EXE passes the results back to the GUI for display. An interesting note about this is that the EXE and GUI do not have to reside on the same machine.
    Good luck,
    Peter

  • Link to another xml file from the current file using XI

    Hello Experts,
    I'm working on a file to file scenario.
    My target file is such that it contains the details of a substance (read chemical substance). Now this substance can have many properties like state of matter, density, odor, color etc. Each of these properties have individual xml files.
    What I want to know is how do I insert a link in this substance file for the individual properties files? Is there  a way in XI to do so? Or giving separate files is the only way?
    Please help.
    Thanks,
    Merrilly

    Hi,
    Create Nodes for u r substances and provide u r fields below the substances then u r structre will comple and use occarances....
    For my Knowledge Insertion of links is not posible....
    This  is the way u can do u r r target file...
    Plw award points
    thanq

  • I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button

    I have a document made up of separate PDF files which reside in a folder and are linked to each other via hyperlinks. Each pdf file is set to open with bookmarks displayed, however if I link from one PDF file to another and use the "Previous View" button to navigate back to my starting point the bookmarks are replaced by "page thumbnails". Is there anyway to stop this from happening?

    Hi Pusman,
    While setting up the links, if you choose to open the file in a new window then you won't face this issue, then you can simply switch to the previous file and bookmark view will remain as it is.
    Does that helps with your query?
    Regards,
    Rahul

  • How to use PDF files with links to other PDF Files

    How to use a PDF file with links to other PDF files that have been transferred to the same folder

    Are you using a mouse, or a trackpad on a laptop? Either way, your cursor is usually an arrow, right? And presumably it's working/moving MOST of the time, otherwise you wouldn't be able to do anything?
    For example, can you move the cursor arrow to the "Annotate" tool to click on it and go into Annotate mode? If so, can you click on the text tool? If so, does the cursor change to a crosshairs? At what point can you NOT move the cursor around the screen?
    Matt

  • Install from scratch 3 times Mavericks but cannot used my restore it will just start for ever. After first install and restore mail and link between folder and files didn't work anymore. Now cant see my disk in finder. Help?

    First install through regular update : never finishing the start after automatic restart
    First install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only - Mail crashed each 5 inutes and asked constantly for password of my 2 accounts, links between folders and files not OK and attaching a doc was complicated. I downloaded the update same problems
    Second install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - Used Migration Assistant to restore applications and data only and settings : never finishing the start after automatic restart
    Third install from scratch: erase through disk utility, install OS X Mavericks (using Recover mode), restart ok - But no disk available in Finder
    So far no Mac since 3 days ...
    Any help is welcome

    Still struggling to understand why copying the entire root dir to a disk image and then restoring from that image did not, as expected, yield an identical system, and why I even had to reinstall after doing this.
    Because there is a lot more going on under the hood than merely copying files.
    The only way to do what you want is to use cloning software like Carbon Copy Cloner.
    My  advice is to rescue your personal files to a regular non-TimeMachine  external drive, Zero erase the ENTIRE drive and install OS X fresh and  update, then your programs from original sources and files from backup.
    Then, make a bootable clone and you can copy that as many times as you want and each one is bootable.
    Most commonly used backup methods
    How to erase and install Snow Leopard 10.6

  • Sliding Flash Interface - Using Links from an XML file Problem

    Hi All,
    Working on a new site for the company i've recently started
    working for... fairly new to flash but wanted to try this sliding
    interface for the graphic banner at the top of the page...
    have a look here at an early version of the site - sliding
    graphic interface at the top with coloured rollover buttons (a lot
    of work still to do! feel free to post constructive criticism)
    (am I allowed to post links??)
    here is the unfinished version with no links in the flash bit
    http://www.westfieldhealth.com/website/index.asp
    The Problem:
    I am pulling in a 'heading' 'text' and 'image' into the
    sliding graphic interface from the following xml file... (there are
    4 different xml files for 4 different slides)
    <?xml version="1.0" encoding="iso-8859-1"?>
    <content>
    <dialogue>
    <heading>Interested in selling our health
    plans?</heading>
    <text>Click here to learn more...</text>
    <img>home_window/intSmall.jpg</img>
    </dialogue>
    </content>
    I want to add a link to the xml that would be specific to
    each instance of the window...
    eg
    <link>contact-us/index.asp</link>
    But my limited knowledge of flash means I have no idea how to
    pull the link through from the xml file to use in the flash...
    Perhaps I need link text to pull as well
    eg
    <link-text>click here to contact us</link-text>
    Here is the function that pulls in the img, heading and txt
    public function onComplete(event:Event):void {
    var loader:URLLoader = event.target as URLLoader;
    if (loader != null) {
    externalXML = new XML(loader.data);
    mover_mc.heading_txt.htmlText =
    externalXML.dialogue[0].heading;
    mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
    var url:URLRequest = new
    URLRequest(externalXML.dialogue[0].img);
    myLoader.load(url);
    } else {
    trace("loader is not a URLLoader!");
    Can anyone help me on how to pull in the link from the xml
    and use it to navigate to a different page on the site
    Thanks very much
    Hans
    link to
    my unfinished flash file...

    What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
    Cheers
    David

  • Is there a keyboard shortcut to delete files without the need to use the mouse? In OS X Mavericks.

    Is there a keyboard shortcut to delete files without the need to use the mouse in OS X Mavericks?

    my question is precise
    Not exactly........
    Cmd-Delete deletes a selected file without a mouse.
    What you want, I think, is a way to select the file (presumably in Finder) without a mouse so that it can be deleted.
    If you open a new Finder window - Cmd-N you can navigate with the up/down arrow keys as you navigate a file is selected , once selected it can be deleted with cmd-delete.
    If while navigateing with the up/dpwn arrow keys you encounter a folder you can delete the folder with cmd-delete or open the folder with the right arrow and proceed to naviagte and delete.

  • Opening links to pdf files using safari

    While using safari and clicking on a link to a pdf file, a new page loads that is just totally black. If I use the firefox browser and click on the same link, a new page opens and displays the pdf perfectly.
    While using safari, if I choose to download the pdf file to desktop, and then click on it, it opens fine using preview.

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

Maybe you are looking for

  • Copy file from C drive to my network drive

    Hello to All, I am trying to copy some files from my C drive to the Network i.e. M drive. Using Oracle forms 10g AS on a UNIX box. This code works fine: :blk_global_items.file_load_from := 'c:\temp\0310011.ffs'; :blk_global_items.file_load_to := 'C:\

  • FAX and Output Filename

    Does anyone know if it's possible to output the actual OutputFileName from the transformation builder? I want to print a document in PDF and sent it by FAX. I have a fax machine which is able to scan a directory, picking up a txt file, and it expects

  • Regarding no party no technical system, or anything when log into IR

    Hi all:      Technical systems(ABAP type) and business systems(ABAP type) have been created in SLD, however when log into Integration Repository, there is nothing on object Panel, no technical system or party , totally empty, could you please tell me

  • Firefox will not open at all, no matter how many times I click it.

    Firefox will not open at all. I have tried troubleshooting, I have tried right clicking it and clicking "Run As Administrator", and I have tried uninstalling and reinstalling it. When i try open it, it does not come up with any error messages or anyt

  • Custimizing label not equal

    Dear all Our production server and development server not  equal our target is only custimizing label both are equal which profile  choose please guide SAP_ALL    All Client-Specific Data w/o Change Documents SAP_APPL   Customizing and Application Da