Opening a file with other applications

Is there a way to open a file in Java with other applications automatically? For example, *.gif - Photoshop, *.txt - notepad.

If you are using Windows, then yes there is.

Similar Messages

  • Acrobat 7.1 IE plugin cannot open .pdf Files with mt/application/octet-stream

    Hi Folks,
    we have some problems to open pdf - files via Hyperlink in an IE Explorer. this files get from the web-server the MIME-Type "octet-stream".
    the only option is to save and then open the pdf files. But we want to open the pdf files directly IN the IE. the option to open it not in IE is not possible because then another application will not work.
    Is it generally possible to open an pdf File with an octet-stream MIME-Type with the IE-Pluin, and if Yes is ther any possible configuration we could try.
    Thanks for your help
    regards
    Felix

    Hi Bill,
    we already tried to change that checkbox that solves the problem but we get new problems with other applications, so this way is also no option for us.
    also we tried to repair / reinstall acrobat, but it has no effect.
    I suppose that maybe adobe just closed that door to open pdf documents with the octet-stream MIME-Type. Because it could an way to insert executable files in the system.
    maybe a higher version than 7.1 can do this?
    Thanks for your help, here in Germany it is already 2 pm so not far from quitting-time ;)

  • Cannot open TDM files with compiled applications

    I need to open TDM files using my EXE application, but it doesn't work in computers with only LabView Run Time installed. (It does if LabVIEW is installed, and it also does if I run my VIs). It doesn't display any error, and it doesn't extract any data.
    I've tried installing DSC Run Time as well, but it doesn't work either.
    Is this some Lisencing restriction?
    Do I need some extra installings?

    Regardless of the forum location ... make sure you have checked "NI USI" in your installer build specification.
    Herbert

  • Externally opening a file with the program its associated with

    Basically I'm looking to simulate what would happen if you double clicked on something in a windows explorer window. I want to have the operating system open a file with the application that as associated with it.
    how do I do it?

    Have you considered the portability issue?
    Win - Associate by editable user preferences
    Mac - Associate to creation program
    Unix/Dos - Explicitly associate program at command
    Rather than just using exec, you could look into something encapsulated to set which program to use so you could use on other system.

  • Can you open an existing illustrator file with the application default settings?

    I need to open a customers illustrator files that he sends me with the default application settings, not the setting he saved with his file.

    CS6 (Mac) but soon CC.
    What is happening is they are saving the files with among other things, print scaling set to something other than 100%. If one of our operators does not catch it, the plate files are ripped at a smaller size than what they should be.
    This customer does thier own production work and sends us "plate ready" files but sometimes forgets to change this setting back to 100% (he changes the scaling to something that will fit on a letter size page so he can check his separations).
    I seem to recall (from years ago), there was a way to open a file using the applications default settings, not the settings saved within the file itself.

  • What application can you use to open a file with the .acc extension?

    What application can you use to open a file with the .acc extension?

    http://www.fileinfo.com/extension/acc

  • Open a file with its defualt associated application

    is there any way to open any file with its defualt associated application from a java program ?
    Example:
    In Windows I have a file example.txt and, from a java program, I would like opening it by the defualt associated application Notepad.
    Thx

    Take a look at this thread:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=161228

  • Google Chrome doesn't open files with any applications

    Hey all,
    After downloading stuff, it is desirable to open the files downloaded; however this is made difficult on my Arch system because Chrome doesn't know what to open the files with, nor does it ask.
    I'm using SLiM, xmonad, and have a rather minimalistic set up.
    Secondary to this, Chrome cannot determine by itself whether it is the default browser application.
    I don't know where I could provide this information to Chrome, Can anybody help?
    Thanks

    have a look here
    http://bbs.archlinux.org/viewtopic.php?id=89053

  • When I try to open a file with adobe Bridge it will say that the parent application is not active, how can I fix this??

    When I try to open a file with Bridge the following message appears:
    I already re-installed PS CC and I can open the files trough Photoshop CC but not through bridge.Any advice please??

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Opening a file with FILE_SHARE_DELETE mode (Only on Windows)

    Hi,
    We have an application that imports logs from several 3rd party vendor's applications. Basically what we do is import the logs in real time, i.e we do have a live FileInputstream connection to the log file. Now, when the 3rd party applications that rotate these logs (many of them do when they grow big or scheduled periodically), all unix flavors dont see to have any problem, while the windows does complain that the device or resource is busy and the original application is not allowed to rotate it. When i dug into the native code of windows jvm, i found that the file is not opened in the FILE_SHARE_DELETE mode and only with FILE_SHARE_READ and FILE_SHARE_WRITE modes. When we wrote a separate C++ application the opens a file with FILE_SHARE_DELETE mode, we found that the logs are rotatable.
    Now, how can we instruct the JVM to open a file with FILE_SHARE_DELETE mode? Is there any such implementation already or do i have to come up with another class extending the FileInputStream and use a totally different open method where the file is opened with this mode in the native code?
    Thanks
    Manava

    Hello,
    I think you can write :
    Runtime.getRuntime().exec("start.exe " + MyFileDialog.getDirectory() + MyFileDialog.getFile());
    So, "start.exe" choose the application (not valid for NT machine), ".getDirectory()" return the PATH and ".getFile()" return the NAME.
    Best regards from France
    Thierry

  • Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory

    Dear Experts,
    Please note that I am facing a chllenge while confiuguring the VNCServer on the local test Server. The Local Test Sver OS Version is Redhat Enterprise Linux Server 
    Release 5.5 32-bit. Please review the following error message and advise me on how to fix the vncserver issue.
    [root@test .vnc]#  cat xstartup
    #!/bin/sh
    # Uncomment the following two lines for normal desktop:
    unset SESSION_MANAGER
    exec /etc/X11/xinit/xinitrc
    gnome-session &
    [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    #xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    twm &
    [root@test .vnc]#  cat /etc/sysconfig/vncservers
    # The VNCSERVERS variable is a list of display:user pairs.
    # Uncomment the lines below to start a VNC server on display :2
    # as my 'myusername' (adjust this to your own).  You will also
    # need to set a VNC password; run 'man vncpasswd' to see how
    # to do that.
    # DO NOT RUN THIS SERVICE if your local area network is
    # untrusted!  For a secure way of using VNC, see
    # <URL:http://www.uk.research.att.com/archive/vnc/sshvnc.html>.
    # Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
    # Use "-nohttpd" to prevent web-based VNC clients connecting.
    # Use "-localhost" to prevent remote VNC clients connecting except when
    # doing so through a secure tunnel.  See the "-via" option in the
    # `man vncviewer' manual page.
    # VNCSERVERS="2:myusername"
    # VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
    VNCSERVERS="1:oracle"
    [root@test .vnc]# ls
    passwd test.oracle.co.zm:1.pid  test.oracle.co.zm:3.log  test.oracle.co.zm:5.pid  test.oracle.co.zm:6.pid
    test.oracle.co.zm:1.log test.oracle.co.zm:2.log  test.oracle.co.zm:5.log  test.oracle.co.zm:6.log  xstartup
    [root@test .vnc]# more test.oracle.co.zm:1.log
    Xvnc Free Edition 4.1.2
    Copyright (C) 2002-2005 RealVNC Ltd.
    See http://www.realvnc.com for information on VNC.
    Underlying X server release 70101000, The X.Org Foundation
    Tue Mar 11 11:18:37 2014
    vncext:      VNC extension running!
    vncext:      Listening for VNC connections on port 5901
    vncext:      Listening for HTTP connections on port 5801
    vncext:      created VNC server for screen 0
    Could not init font path element unix/:7100, removing from list!
    localuser:root being added to access control list
    No profile for user 'root' found
    SESSION_MANAGER=local/test.oracle.co.zm:/tmp/.ICE-unix/13603
    Window manager warning: Log level 32: could not find XKB extension.
    ** (eggcups:13671): WARNING **: IPP request failed with status 1030
    ** (eggcups:13671): WARNING **: IPP request failed with status 1030
    ** (nm-applet:13697): WARNING **: No connections defined
    Initializing nautilus-open-terminal extension
    Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
    Unable to open desktop file /usr/share/applications/openoffice.org-1.9-writer.desktop for panel launcher: No such file or directory
    Unable to open desktop file /usr/share/applications/openoffice.org-1.9-impress.desktop for panel launcher: No such file or directory
    Unable to open desktop file /usr/share/applications/openoffice.org-1.9-calc.desktop for panel launcher: No such file or directory
    [root@test .vnc]#
    Regards
    Mohammed Abdul Muqeet

    Hi,
    Try these 3 solutions
    1. Did you start vncserver services as:
    service vncserver start
    2.Check that port 5901 has not been blocked by a firewall:
    # nc -vz localhost 5901
    You should get a connection and a termination. If you get an error, fix the firewall.
    3. service iptables stop
    Hope This Helps
    Regards,
    -DK

  • Desktop.open can not open the file with unicode letters in the path?

    String filename = "/home/wenkai/received/&#27979;&#35797;.txt";
    try {
         File file = new File(filename);
         Desktop.getDesktop().open(file);
         } catch(IOException ex) {
              ex.printStackTrace();
              return;
         }"&#27979;&#35797;" is just Chinese word. Now, I am using Ubuntu7.10, Gnome2.20.1, system environment setting is LANG="zh_CN.UTF-8", and java version is 1.6.0.
    My system will open text file using gedit application, but when I run the code above, "file:/home/wenkai/received/&#27979;&#35797;.txt&#65306;file name or URI format error." printed in console and gedit open an temp empty file.
    Do I need to encode the file path? I have tried URLEncoder.encode(String, String), but it dose not work.

    RGold1963 wrote:
    …would like to be able to do that with CS5 as well…
    I understand that, of course.  But since I don't do windows, the above is all I can offer. 
    Wo Tai Lao Le
    我太老了     

  • Opening a file with custom FileDialog. (VERY URGENT)

    hi everybody,
    I have a problem and stuck. I have developed a MDI application that provides all function like open saved files, create new, edit and lots of other. It only opens, save ,edit etc the graphical diagrams inside JInternalFrames. I have an icon on my desktop when clicked opens this Application. Just like Editplus, Word or some other application when you click on the icon it opens that. Same way I have created such functionality.
    Now instead of this I have created a custom FileDialogfrom which the user selects this application and is opened. Now I have small icon for this FileDialog on the desktop when opened gives the interface to select the files to be opened. My FileDialog just looks like the FileDialog but some more functionality and more components like JComboBox, Jlist, JtextField, JButtons etc. in it and have removed some of them. I am extending JDialog. But now my probelm is when you select a file and click open, it should open the selected file. How can I achive this functionality in my custom FileDialog as I am not extending FileDialog and as it is built in the FileDialog. How can I open the files with any extension in it's related application e.g .doc files to be opened in MicrosoftWord, .txt to be opened in notepad, .c or .cpp in Visual Studio C++ etc.
    How can I put this kind of functionality in my custom FileDialog. It's really important for me please any comments will help me alot. Thanks for the help

    Hello,
    I think you can write :
    Runtime.getRuntime().exec("start.exe " + MyFileDialog.getDirectory() + MyFileDialog.getFile());
    So, "start.exe" choose the application (not valid for NT machine), ".getDirectory()" return the PATH and ".getFile()" return the NAME.
    Best regards from France
    Thierry

  • How to open a file with a link ?

    I am using servlets to design an application.
    The application supports uploading and downloading of .DOC and .RTF files.
    My problem is that I am opening an uploaded file via a link.
    OPen File
    The above is also working fine and opens the file in the IE browser.
    But my problem is that I want to open the file with MS-Word...as is done on many resume-building websites.
    1) How am I supposed to do that ?
    2) Can I specify ContentType="application/msword" in a link ?
    Please Help !!

    I did the foll. w.r.t a docbase.
    A docbase stores documents and assigns an unique id to each one. The foll. is a code snippet that opens a document's contents in a browser.
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
    Connection conn = null;
    Statement stm;
    ServletOutputStream sos = null;
    ResultSet res;
    // .... get id of document u want to open
    query = "select id from .. where object_name = ' xx' .."
    res= stm.executeQuery(query);
    Blob blob = res.getBlob("_content"); // this will get content of document identified by id
    int blobLen = (int)blob.length();
    //the foll. is the part u need..
    if (blobLen > 0) {
    InputStream contents = blob.getBinaryStream();
    response.setContentType("application/msword"); // MS Word
    byte[] buf = new byte[blobLen];
    int length = -1;
           while ((length = contents.read(buf)) != -1){
              sos = response.getOutputStream();
              sos.write(buf,0,blobLen);
    sos.flush();
    System.out.println("Doc Received");
    contents.close();
      res.close();
      conn.close();
    }

  • I can't open PDF files with adobe flash player

    I have installed it and whenever I try to open pdf files it says I need to agree with your liscens and you do that automatically when you download it. I have followed all your instructions on your website and uninstalled it and installed again, but I can't open pdf files with it. I don't know what the problem is exactly, but it's really frustrating..

    Flash Player CANNOT open PDFs because they AREN'T Flash Documents.
    Adobe Reader opens PDFs.
    To accept the license agreement (NOT the one you accepted to download or install - the one for USE)
    Windows:
    Go to: C/Program Files(x86)/Adobe/Reader 11.0/Reader and double click the eula.exe file. The license agreement will open for you to accept.
    Mac:
    Go to: Mac HD/Applications and double click the Reader app. The license agreement will open THE FIRST TIME you open it.

Maybe you are looking for

  • MODEL clause using CONNECY BY PRIOR

    Hello. I have the following table, CONTEXT_MAPPING: Name Null? Type ID NOT NULL NUMBER(38) CONTEXT_ITEM NOT NULL VARCHAR2(30) ID_1 NUMBER(38) ID_2 NUMBER(38) ID_3 NUMBER(38) ID_4 NUMBER(38) ID_5 NUMBER(38) It's a self referencing table, i.e. ID_1 wil

  • Logout has timed out because the application Mail failed to quit.

    Hello world... (Mac world that is) The message says more "Logout has timed out because the application Mail failed to quit. To try again, quit Mail and choose Log Out from the Apple menu." I tried everything. Still does not let me shut down. Other pr

  • Dynamic Photo Gallery with Static Links

    The Dynamic Photo Gallery has a Dynamic List Menu generated from the galleries.xml file. I would like to load the Dynamic Galleries with a link if possible. Currently I have 3 Galleries.... China, Eqypt & Paris Dynamic Code: <select name="gallerySele

  • How to add a PANTONE color to docs?

    Hi everyone I got this script var docs = app.documents;   for (var i = docs.length-1; i >= 0; i--) {       try{         docs[i].colors.item("Body Text Color").name;         catch (myError){                     docs[i].colors.add({name:"Body Text Colo

  • I cannot find my activation code for Creative Suite 5

    It is not in my account and I do not have an email