Open, Open Containing Folder in Windows Explorer Using java

How to open a file using the default application using java code?
Ex: - Open a JPG file using its default image viewer (Ex: Piscasa 3)..... (Not Inside the Java Application)
Then how to open a file containing folder with that file selected?
Couldn't find any sources in the internet, Not sure whether my search terms are correct....
Please Help
Thanks!!!

Madushan.UoM wrote:
Thanks Andrew...
I've did opening the file using
try {
Desktop desktop = null;
if (Desktop.isDesktopSupported()) {
desktop = Desktop.getDesktop();
desktop.open(new File(path));
} catch (IOException ioe) {
ioe.printStackTrace();
}Also able to open the directory by setting the "path" variable into the directory path
But how to highlight the needed file after the Explorer is opened???Also, to be completely safe, you'd want to call Desktop#open() only if isDesktopSupported() returns true, otherwise you'll get a NullPointerException.
if (Desktop.isSupported()) {
   try {
      Desktop.getDesktop().open(new File(path));
   } catch (IOException ioe) {
      ioe.printStackTrace();
}

Similar Messages

  • Can't open webdav URL in Windows Explorer

    I am working on a page that searches for collections (folders).
    From the results page I would like a link that opens the folder in Windows Explorer.
    But when I click on the webdav URL it opens UCM "browse folders" view.
    I have installed DIS, but it didn't help.
    I have a "network place" setup.
    I can create a shortcut to open webdav in Windows Explorer, just can't do the same with a URL.
    Thanks

    Our consultant found an easy way to open a webdav folder with the windows explorer from a form (IE only).
    <form method=GET name=webfolder action="http://myserver.na.d-rco.com:7797/dridctest/idcplg/webdav/Contribution%20Folders/" folder="http://myserver.na.d-rco.com:7797/dridctest/idcplg/webdav/Contribution%20Folders" style=behavior:url('#default#AnchorClick') target=WebFolder>
    <input name=sm type=submit value=Open>
    </form>

  • Creating a New Folder in Windows Registry by java coding

    Good morning,
    hi to all,
    how can I create a New folder in Window Registry using Java coding. Can anybody help me out pls.
    I begin waiting for ur reply.
    Thanx

    Why do you feel you need to write to the Windows registry directly? Take a look at the Preferences class.
    {color:#0000ff}http://java.sun.com/javase/6/docs/api/java/util/prefs/Preferences.html{color}
    luck, db

  • Firefox 4.01 downloads files but the downloads windows greys out the "Open" and "Open containing folder" options and I can't trace the files

    Three days ago I upgraded to Firefox 4.01. I downloaded several files that were ok. Yesterday and today I downloaded one powerpoint file and a an apple *.dmg file.
    On the Download window these two files I can see with the total mb in size. However when I right click the file list in the Download window the "Open" and "Open containing folder" options are greyed out. What is more I cannot find these files anywhere on my computer when I use Windows Explorer to search.
    It seems that this happened after I tried to download a Firefox add on from http://releases.mozilla.org/pub/mozilla.org/addons/64761/amazonassist-0.7.2.6-fx.xpi and my antivirus picked up the JS/Kryptik.AK trojan and terminated the connection. Is there a link with the problem I am experiencing?
    I use Windows 7 professional, Firefox 4.01

    You're welcome

  • Cannot open file folder in download window. when RT click "open containing folder" it is not highlighted.

    Recently when I try to access my folders in my Download window I cannot access them. I tried right clicking to open "open containing folder" but it is not highlighted.
    Any suggestions...Thanks

    Hi ,
    According to your description, my understanding is that you could not edit documents with Office client application in SharePoint 2010.
    Let’s do a troubleshooting about this issue:
    1. Make sure that you have installed Office application on your machine.
    2. Which explorer did you use for your SharePoint. Please test it with IE 10 32-bit, compare the result.
    3. Please try to reset IE, compare the result.
    4. Add your SharePoint site into Trusted site on your IE options.
    5. Make sure all add-ons related to SharePoint are enable, special for SharePoint OpenDocument Class and SharePointOpenXMLDocuments.
    6. Since you used OWA for your SharePoint site, please try to disable OWA, then open documents with client application, compare the result.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Open Containing Folder give empty Launch Application window

    Using CentOS 6.4, Firefox 24.2.0.
    Clicking the "Open Containing Folder" icon under Downloads only opens a "Launch Application" window, prompting me to "Choose an Application". It says "This link needs to be opened with an application." It seems normally the association gets made automatically, because I've never seen this before. What's the application I'm supposed to choose?

    Thanks for responding, guigs2. I've since blown away the VM and started again, so I don't have a screenshot. The new Firefox installation doesn't have the problem.

  • When ever I right click on the menu item "open containing folder" in the downloads window, it only opens the 'My Documents' folder. It never goes any farther than that. How do I fix this?

    Open 'Tools----downloads'.---Right click on any downloaded file that is available in the list.---click on 'Open Containing Folder'
    Results in opening the My documents folder.
    Not in the folder I have listed in Tools ---Options --- General---downloads---Save files to:

    You can use this extension to modify the menu.
    *Menu Editor: https://addons.mozilla.org/firefox/addon/menu-editor/
    You can also achieve this with code in the userChrome.css file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    The customization files userChrome.css (interface) and userContent.css (websites) are located in the chrome folder in the user profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #context-sendimage,
    #context-sendvideo,
    #context-sendaudio { display:none!important; }</nowiki></pre>

  • FF4 on Linux, Open Containing Folder

    Using LinuxMint 10 (like Ubuntu 10.10). WIth FF 3.16, when I select "Open Containing Folder" (when a download is finished). FF opens the folder using Nautilus. Now FF4 always as to select an application to open the folder. Obviously I want to open the folder using Nautilus, so I type nautilus.
    Now the context menu Open or Open Containing Folder do absolutely nothing. Please note that on Windows, Open Containing Folder works correctly. It really opens the folder using Windows Explorer.
    Is it still possible in FF4 to Open the Containing folder? If yes, please show how. If not, please put it back the way it was in FF3.
    Thanks

    This does nothing.
    (Help > Troubleshooting Information > Profile Directory: Open Containing Folder)
    Clicking on the "Open Containing Folder" does absolutely nothing. The action is just ignored. How can such a basic things could pass QA Test after such a lengthy beta test period? I found this defect right at the first day of use.

  • Trying to open a sharepoint library in Windows Explorer via IE 8 results in the error "your client does not support opening this list with windows explorer"

    I am attempting to connect to a Microsoft Sharepoint library, via the "Actions -> Open in Windows Explorer" option from the Sharepoint page.  When I do so, I get the error message "your client does not support opening this list with windows explorer".  In short, I am trying to get the "drag and drop" functionality of a Sharepoint library.
    I am running Windows 7 64-bit and IE8.  The target Sharepoint environment is a MOSS 2007 EE.  My Windows "WebClient" service is running, and I have no problem connecting to this exact library via a Windows XP computer running IE8.

    Verify that the Webclient is started automatically from the Services.msc
    Verify that your Portal is in the Intranet local security zone (You can reach it from Your Internet Explorer Browser Security Tag) if not add it to the list
    restart the WebClient service if it's work good
    If not you have to create a network share to your portal URL directly not your documents library.
    Open Windows Explorer or My Computer from the Windows Start Menu.
    From the Tools menu, click Map Network Drive…. A new Map Network Drive window opens.
    In the Map Network Drive window, choose an available drive letter from the dropdown list located next to the "Drive:" option. Any drives already mapped will have a shared folder name displayed inside the dropdown list, next to the drive letter.
    Type the name of the folder to map wich is in this case your SharePoint Portal URL (Don't include the documents libraries)
    Click the "Reconnect at login" checkbox if this network drive should be mapped permanently. Otherwise, this drive will un-map when the user logs out of this computer.
    If the remote computer that contains the shared folder requires a different username and password to log in, click the "different user name" hyperlink to enter this information.
    Click Finish.
    I am looking for a suite method :)

  • "Open containing folder" does not work

    After having hit the button "Open containing folder" in the download manager it seems that the computer is busy, but no window opens up.
    I am using Windows 64 bit (all updates) and Firefox 3.6.12.
    Same issue in uTorrent, so it's maybe Microsofts's fault?

    venemovil, thank you for your reply.
    Well, this behaviour is not restricted to a special folder. Regardless of where I save the file, it does not work. In the General tab I have set Firefox to ask me every time where to save the file. The folders are on different partitions and/or hard drives.
    This occured immediately after installing Windows 7 64 (I have only installed the very most important programs).

  • Firefox 'opens containing folder' with...

    ...Leafpad here, which of course does not always helps /-}
    Arch Linux x86_64, Firefox, i3 window manager. Up to date.
    For an user and two profiles, the Mozilla browser opens "containing folder" with Leafpad (on both profiles). While for the other users Thunar is used.
    Opening directories with a file-manager is desired (slightly more than with leafpad /^o). I most surely overlooked something and would appreciate if someone would see where : }
    Hunting the forum allowed me to try e.g.: FrozenFox's solution, but I couldn't make it work:
    Editing /usr/share/applications/mimeinfo.cache AND ~/.local/share/applications/mimeapps.list
    user1 and user2 mimeapps.list's diff
    - Using perl-file-mimeinfo
    Assigning directories to Thunar as per the Wiki
    $ mimeopen -d [FOLDER]
    I made no change this way.
    - Using xdg-open
    I replaced busking-git with xdg-utils
    $ xdg-mime query inode/directory
    xdg-mime: unknown query type 'inode/directory
    $ xdg-mime default Thunar.desktop inode/directory
    $ xdg-mime query inode/directory
    xdg-mime: unknown query type 'inode/directory' !?
    Even if 'inode/directory=Thunar.desktop' is added to ~/.local/share/applications/mimeapps.list
    Note I get "unknown query type 'inode/directory" on both users' profiles.
    Moved USER1's Firefox's 'mimeTypes.rdf' away, relaunched the browser but the 'opens containing folder with...' issue stands still.

    Awesome
    Thanks for that hint. This solves my problem:
    http://antix.freeforums.org/iceweasel-o … t4016.html
    I add the following line to .local/share/applications/mimeapps.list :
    [Default Applications]
    inode/directory=spacefm.desktop

  • [SOLVED] "Open Containing Folder" Issue in Fluxbox

    Hello! I am fairly new to Arch so any help is greatly appreciated.
    I am using fluxbox as my window manager and thunar as my file manager.
    When I right click on a song in banshee and select "Open Containing Folder" the folder is opened in firefox which is fairly annoying. This also happens when I try to show a download in it's folder in google chrome. I am not able to select "Open Containing Folder" for a firefox download (it is grayed out).
    I am guessing the issue is that fluxbox doesn't know what file manager to use so it defaults to firefox for some reason. Is there a way to set default applications for fluxbox?
    Thanks in advance for any help!
    Last edited by Haffinator (2012-08-16 20:31:43)

    That's great
    Don't forget to mark the thread as solved

  • My downloads through Firefox don't actually download - "Open" and "Open containing folder" and greyed out when I right click the downloads in the downloads menu

    I've had this problem for quite a while. The downloads don't actually download. Nothing comes up in my downloads folder (and I've checked where they are supposed to be stored, I am checking the right place). In my downloads popup through the Firefox client, if I right click any download, both "Open" and "Open containing folder" are greyed out. I have tried using both Firefox 18 and the current Nightly client, and have reinstalled multiple times.

    Maybe this will look like a "take aspirin" suggestion, but based on experience so far, The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • IE11/Win 8.1 error 'Your client does not support opening this list in windows explorer'

    I hoping someone might be able to help with this frustrating issue.
    I work on a project where we are using various versions of on-line SharePoint (2007/O365).  In order to quickly drag and drop folders we need to often open the document libraries by using the 'open in windows explorer view'.
    Using the same device, on occassion this works.  But often it gives a rather unhelpful message 'Your client does not support opening this list in Windows Explorer'. 
    I've searched for this issue over the net and confirm that the sites are added to the 'trusted' sites area and that the 'remember you credientials' is checked on logging in.However, the searches do not seem to apply to IE11/Win8.1 or on-line version of sharepoint
    (the suggested hot fix is not suitable)
    Only this morning, using the same device I was able, for a short while to open in explorer view, and then for no apparent reason, it began to display the error message.  I had changed nothing regarding settings or even closed the browser.
    Do you have any support/ideas/fixes on how to resolve this.
    Many thanks
    val

    Hi Val,
    sometimes an answer can be found on the internet by typing the error message from your computer into your favourite search engine.
    eg.
    http://www.bing.com/search?q=your+client+does+not+support+opening+this+list+in+windows+explorer&form=IE10TR&src=IE10TR&pc=HPNTDFJS
    see
    http://blogs.technet.com/b/asiasupp/archive/2011/06/13/error-message-quot-your-client-does-not-support-opening-this-list-with-windows-explorer-quot-when-you-try-to-quot-open-with-explorer-quot-on-a-sharepoint-document-library-in-office-365-site.aspx
    follow the directions given above.... you need to add the domains to your Intranet sites list, not the Trusted sites list.
    Perhaps you already have it mapped to your intranet zone....in which case make sure that you have unchecked "Enable Enhance Protected Mode" on the Intranet  zone dialog in Internet Options.
    If this is happening 'randomly' on client machines, then users are probably changing their internet security settings in Internet Options. Ensure they are accepting the default.... Internet Options>Security tab, click "Reset all zones to default".
    Consult with your system administrators to find out if they are applying a custom security template for the Intranet zone... It may be removing the sharepoint domains from the client Intranet zone's domains lists.
    HTH.
    Rob^_^

  • Your client does not support opening this list with windows explorer - related to multiple uploads?

    Hi folks -
    I've read through some threads regarding "Your client does not support opening this list with windows explorer" and it seems a lot of folks have a lot of solutions throughout the forum posts.  Is there anything official or semi-official regarding
    this? 
    I've tried a lot of the fixes including:
    checking to see if the WebClient service is on
    modifying so-and-so registry (I've since changed them back since they seem to have no effect)
    and changing various settings in Internet Options including making sure the site is in the Local intranet zone.
    I could live without this functionality but just recently my upload-multiple-files functionality in SharePoint 2010 has also gone away (red x instead of directory UI).  I wonder if it's related somehow and could give us a clue.
    If it helps I'm using various browsers but of the IE flavor 8 and 9 32-bit as the base for testing this.

    For SharePoint 2013 (so could apply to 2010 as well), my problem was that I was trying to "Open with Explorer"
    something that probably can't be opened with Explorer. In my case, I just wanted to open my team's Shared Documents with Explorer. I found that when I first log into SharePoint and view the page, I'm presented with those Shared Documents, but also other things
    as well.
    To get "Open with Explorer" to work, I must click "Shared Documents" under the Libraries heading on
    the left. Then, all the other stuff (Links, Getting Started, etc.) go away and I'm focused on my team's shared documents. From there, I can go up to the Library Tools section in the ribbon, choose the Library tab in the ribbon, and click Open with Explorer.
    Works like a champ on Windows 7 64-bit, running IE 9 32-bit.
    Unfortunately that's not what was going on in my case.  One obvious way to check is to see if other people or other computers can Open with Explorer.  In my case it was just this one machine on my desk that had the issue.

Maybe you are looking for

  • Extended Display (dual monitor)

    I just hooked up a second monitor to my macbook using the apple cables. I got everything to work to properly run an extended display, and it looks great. However, my second screen (the new external monitor) doesn't do a couple of things I'm hoping it

  • Having problem opening iMovie 7... with Panasonic PV-GS500.

    Hi there, I just bought iMac 4Gb. I am tried to conect my Panasonic Digital comcoder PV-GS500 into iMAC. Camcoder inserts using Firewire and USD port for Mac. When I inserting, it does read my SD card on the camcoder, but iMovie should opeb automatic

  • Parsing KML / XML

    I'm aiming to integrate KML geodata. Why won't this work? I just want to create one Node for each <placemark> tag in the xml. the xmlData trace gets: <kml xmlns=" http://earth.google.com/kml/2.2"> <Placemark id="0" type="1"> <name>Zero - zero</name>

  • Why are the books from Lauren Dohner gone?

    Recently, I tried to look and see if there were any new Laurann Dohner books in iTunes, and I see that all the books are no longer there even those I had bought previously. Can someone explain to me why they're gone?

  • Wrong photo book

    Hello..some day ago I received the iphot books i've ordered but..... the cover is right,but the interior is not mine!!! it is the interior of a book of another person.. what can I do?