FileSystemView not returning correct names for ShellFolders

How can I get FileSystemView to return the correct names for the shell folders on a win32 system.
e.g.
FileSystemView view = FileSystemView.getFileSystemView();
File[] roots = view.getRoots();
File[] shells = view.getFiles(roots[0], true);
for (int i=0; i<shells.length; i++){
String s = shells.getName();
if (!s.endsWith(".lnk")){
System.out.println(shells[i].getName());
The above snippet with output:
ShellFolder:
ShellFolder:
My Documents
I've noticed the same thing happening when using JFileChooser with a custom FileView, although this didn't happen when I used a basic JFileChooser i.e using the default fileview.
Any help appreciated

After further searching I've found the answer, display the shell name using:
File[] roots = view.getRoots();
System.out.println(roots[0].getName());
File[] shells = view.getFiles(roots[0], true);
for (int i=0; i<shells.length; i++){
   if (!shells.getName().endsWith(".lnk")){
String s = view.getSystemDisplayName(shells[i]);
System.out.println(s);
Thx

Similar Messages

  • Gracenote CDDB service not submitting correct names for songs when importing from CDs

    Gracenote CDDB service not submitting correct names for songs from purchased CDs

    You are looking at the 1st Gen Nano manual.
    You need to look at the 2nd Gen Nano manual here -> iPod Nano Features Guide
    Not much difference but that page 16 shows iTunes 6. You have iTunes 7.
    You have to first select the CD.
    The Import button is now at the bottom right.
    Insert the CD and select it in iTunes and the Browse icon (eye) at the bottom right will change to Import.
    Go to iTunes prefs -> Advanced and tick "Automatically get CD track names from Internet".

  • MessageChoice does not return correct value

    Hi
    I am problem with MessgeChoiceBean's improver beharior
    For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
    In another page it does not return any thing for the first two selections. And I reciev flip values.
    I ran VO outside, VO is returning correct values.
    MessageChoice attributes and associated PPR:
    Data Type: Varchar2
    Initial Value: N
    Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
    Pick List View Instance: YesNoVO3
    Pick List Display Attribute: Meaning
    Pick List Value AttributeL LookupCode
    ActionType: firePartialAction
    Event: handleNewLocationFlagChange
    Parameter Name: newLocationFlag
    Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
    ProcessParameterForm Code:
    if ("handleNewLocationFlagChange".equals(event))
    String newLocationFlag = pageContext.getParameter("newLocationFlag");
    Serializable[] parameters = { ""+newLocationFlag};
    Class[] paramTypes = { String.class};
    am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
    VO definition:
    select LOOKUP_CODE,MEANING
    FROM ONLINE_DOCS_LOOKUPS
    WHERE ONLINE_DOCUMENT_CODE = 'ALL'
    AND LOOKUP_TYPE = 'YESNO'
    ORDER BY ATTRIBUTE1
    View output:
    LOOKUP_CODE     MEANING
    N     No
    Y     Yes
    I have quite a bit number of columns to change render property.
    Any help will be appreciated.
    Thanks
    Prasad

    Your question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?

  • Fsbtodb macro in ufs_fs.h does not return correct disk address

    I'm using fsbtodb to translate the file inode block address to file system block address.
    What I've observed is fsbtodb returns corretct disk address for all the files if file system size < 1 TB.
    But, if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve value
    Is this a known issue and is this been resolved in new versions
    Thanks in advance,
    dhd

    returns corretct disk address for all the files if file system size < 1 TB.and
    if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve valueI seem to (very) vaguely recall that you shouldn't be surprised at this example of a functional filesize limitation.
    Solaris 9 was first shipped in May 2002 and though it was the first release of that OS to have extended file attributes I do not think the developers had intended the OS to use raw filesystems larger than 1TB natively.
    That operating environment is just too old to do exactly as you hope.
    Perhaps others can describe this at greater length.

  • WebtopNaming - can not find server name for server ID

    We have a LB, and web servers in front of OpenSSO app servers in our environment.
    OpenSSO debug log CoreSystem fills up with lot of errors like these:
    ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 07
    com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
    Sometimes, it even complains about a server id (07 in the following trace) which doesn't even exist in the Site Id Table.
    There are no changes in the configuration. DNS is properly configured and all the servers and their connectivity are available. CoreSystem throws these errors even after a restart of opensso app servers.
    Any ideas about the root cause?
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Server Id Table -> {%protocol://%host:%port%uri/AssertionManagerServlet/AssertionManagerIF=iplanet-am-naming-samlassertionmanager-url, http://host4.company.com:8080/openSSO=04, com.iplanet.dpro.profile.agent.ProfileService=iplanet-am-naming-profile-class, %protocol://%host:%port%uri/SecurityTokenManagerServlet/SecurityTokenManagerIF=iplanet-am-naming-securitytokenmanager-url, %protocol://%host:%port%uri/authservice=iplanet-am-naming-auth-url, %protocol://%host:%port%uri/sts=sun-naming-sts-url, %protocol://%host:%port%uri/SAMLAwareServlet=iplanet-am-naming-samlawareservlet-url, http://host5.company.com:8080/openSSO=05, com.sun.identity.authentication.server.AuthXMLHandler=iplanet-am-naming-auth-class, com.sun.identity.policy.remote.PolicyRequestHandler=iplanet-am-naming-policy-class, %protocol://%host:%port%uri/loggingservice=iplanet-am-naming-logging-url, %protocol://%host:%port%uri/jaxrpc/=iplanet-am-naming-jaxrpc-url, %protocol://%host:%port%uri/FSAssertionManagerServlet/FSAssertionManagerIF=iplanet-am-naming-fsassertionmanager-url, %protocol://%host:%port%uri/identity/=sun-naming-idsvcs-rest-url, 03,05,04,02|03,01|03=iplanet-am-platform-site-id-list, %protocol://%host:%port%uri/identityservices/=sun-naming-idsvcs-jaxws-url, %protocol://%host:%port%uri/sts/mex=sun-naming-sts-mex-url, %protocol://%host:%port%uri/profileservice=iplanet-am-naming-profile-url, %protocol://%host:%port%uri/SAMLPOSTProfileServlet=iplanet-am-naming-samlpostservlet-url, 02|02,01|01,05|05,04|04=iplanet-am-platform-lb-cookie-value-list, %protocol://%host:%port%uri/SAMLSOAPReceiver=iplanet-am-naming-samlsoapreceiver-url, https://host4.company.com:8443/openSSO=01, com.sun.identity.log.service.LogService=iplanet-am-naming-logging-class, %protocol://%host:%port%uri/sessionservice=iplanet-am-naming-session-url, https://host5.company.com:8443/openSSO=02, %protocol://%host:%port%uri/policyservice=iplanet-am-naming-policy-url, iplanet-am-naming-service=serviceObjectClasses, com.iplanet.dpro.session.service.SessionRequestHandler=iplanet-am-naming-session-class, https://opensso-qa.company.com:443/openSSO=03}
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Site Id Table -> {03=03, 02=03, 01=03, 05=05, 04=04}
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Platform Servers -> [https://opensso-qa.company.com:443/openSSO, https://host5.company.com:8443/openSSO, https://host4.company.com:8443/openSSO, http://host4.company.com:8080/openSSO, http://host5.company.com:8080/openSSO]
    amNaming:05/13/2011 10:22:37:009 AM PST: Thread[WebContainer : 0,5,main]
    Platform Server IDs -> [03, 02, 01, 04, 05]
    amNaming:05/13/2011 10:22:37:010 AM PST: Thread[WebContainer : 0,5,main]
    ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 07
    com.iplanet.services.naming.ServerEntryNotFoundException: Cannot find server.
    at com.iplanet.services.naming.ServerEntryNotFoundException.<init>(ServerEntryNotFoundException.java:52)
    at com.iplanet.services.naming.WebtopNaming.getServerFromID(WebtopNaming.java:709)
    at com.iplanet.dpro.session.SessionID.setServerID(SessionID.java:380)
    at com.iplanet.dpro.session.SessionID.parseSessionString(SessionID.java:363)
    at com.iplanet.dpro.session.SessionID.getSessionServerID(SessionID.java:261)
    at com.iplanet.dpro.session.service.SessionService.isLocalSite(SessionService.java:881)
    at com.iplanet.dpro.session.Session.getSessionServiceURL(Session.java:1197)
    at com.sun.identity.authentication.UI.LoginServlet.initializeRequestContext(LoginServlet.java:153)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:578)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

    Thank You for the response.
    Here is my site configuration in OpenSSO:
    There are 4 servers in the two opensso hosts (2 secure, 2 non secure)
    Servers:
    http://host4.company.com:8080/openSSO
    http://host5.company.com:8080/openSSO
    https://host4.company.com:8443/openSSO
    https://host5.company.com:8443/openSSO
    Only one site with secure URLs is configured
    Sites:
    site1
    Primary URL: https://opensso-qa.company.com:443/openSSO
    Assigned Servers:
    https://host4.company.com:8443/openSSO
    https://host5.company.com:8443/openSSO
    From the CoreSystem log, Server ID definitions are:
    https://host4.company.com:8443/openSSO=01
    https://host5.company.com:8443/openSSO=02
    https://opensso-qa.company.com:443/openSSO=03
    http://host4.company.com:8080/openSSO=04
    http://host5.company.com:8080/openSSO=05
    Sometimes it throws an exception with existing server IDs. But sometimes it also complains about non existing server IDs.

  • Laptop says 'This version of iTunes has not been correctly localised for this language. Please run the English Version'. Can anyone help please, have no idea what to do and haven't used laptop in over a year. iPad/iPhone have lost tunes from laptop too.

    my laptop will not open iTunes, as it just says 'This version of iTunes has not been correctly localised for this language. Please run the English version'. I have not synconised my iPhone 5S or iPad 2 with iTunes for well over a year. I noticed the music which had previously been put into iTunes has dissappeared from my phone and iPad. I also want to remove some movies from my iPad and iPhone and there is no way I can do this without being able to manually sync with the Laptop which is running windows 7. Has anyone else come across this and please can you help? I am no expert in fact I know very little about the Laptop, it is my Husbands baby but he doesn't understand anything to do with Apple including iTunes. I will need any advise explained step by step please.

    Hi Shelady,
    Try downloading and reinstalling the latest version of iTunes from the first link below. If that doesn't do it, the suggestions in the second article should resolve the installation issue.
    Apple - iTunes - Download iTunes Now
    http://www.apple.com/itunes/download/
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/HT1923
    -Jason

  • Stock Ledger Report in Day Wise not giving correct values for Opening Stock

    Dear Experts,
    I m working on Sock ledger report to give the day wise data.
    since yesterdays closing Stock will become opening stock of today,
    To get Opening Stock,
    I have restricted the stock key figure with 2 variables on calday        
                                  (DATE FROM var with <=(Lessthan or equal to) and offset -1
                                   DATE TO      var with <=(Lessthan or equal to) and offset -1)
    To get Closing Stock,
    I have restricted the Stock key figure with 2 variables on calday        
                                  (DATE FROM var with <=(Lessthan or equal to)
                                   DATE TO      var with <=(Lessthan or equal to) )
    But in the output Opening stock values are not coming correctly and for given range of dates,
    for last date, opening stock is showing as Zero.
    Could you please tell me how can I achieve the correct values for opening stock.
    Thanks in advance.

    Hi Arjun,
    Seems like you are making it more complicated. What is your selection screen criteria?
    Ideally you should only use the offset.
    You will have say Calday in rows and stock in Column
    ____________Opening Stock_____________Closing Stock
    01/06/2009___(Closing stock of 31/05/2009)_(Stock of 01/06/2009)
    02/06/2009___(Closing stock of 01/06/2009)_(Stock of 02/06/2009)
    03/06/2009___(Closing stock of 02/06/2009)_(Stock of 03/06/2009)
    So, from above scenario, create one RKFs and include Calday in it. Create a replacement path variable on calday and apply the offset as -1.
    So, your Opening Stock will be calculated by closign stock of previous day.
    - Danny

  • ITunes will no longer download. It says it has not been correctly localized for this language, and to run the English version. How do I do that?

    My iTunes will no longer download.
    All of a sudden I get the message "This version of iTunes has not been correctly localized for this language. Please run the English version".
    How do I fix this and run the English version again? .

    Start by trying to repair iTunes from the programs and features control panel.
    Otherwise, for general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • After  a system restore, I get an error message telling me that "This version of iTunes has not been correctly localized for this language.  Please run the English version." the E

    I did a system restore, trying to get rid of the new update (which I HATE), and now when I try to open iTunes, I get an error message telling me that "This version of iTunes has not been correctly localized for this language.  Please run the English version."  You can't change the language option unless you can open iTunes - and IT WON'T OPEN!!!  What a piece of crap!  If there existed an iTunes substitute, I would purchase it in a hot minute! 

    Strip it out and start again.
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you really want to roll back to 11.4 uninstall all iTunes/Apple components as described in the second box, restore the pre-upgrade version of the library as described in Empty/corrupt iTunes library after upgrade/crash, then download and install from one of these direct links:
    iTunes 11.4.0.18 for Windows (32-bit) - iTunesSetup.exe (2014-09-09)
    iTunes 11.4.0.18 for Windows (64-bit) - iTunes64Setup.exe (2014-09-09)
    tt2

  • Why am I getting an error stating this version of iTunes has not been correctly localized for this language. Please run the English version when I just bought a song yesterday and had no problems

    I have iTunes running on my Windows8 desktop for some while with no problems. Yesterday I purchased a song, deleted a free game app. and upgraded to the most current version of iTunes.  This morning I could not pull up iTunes, so I retored my iTunes to a setting two (2) days ago.  Now, as soon as I try to start iTunes I get a message stating: This version of iTunes has not been correctly localized for this language. Please run the Enclish version OK.  So I hit the OK button and nothing happens.  Please help.

    Hi there GloriaNM,
    You may want to try removing and reinstalling iTunes as an initial troubleshooting step. Take a look at the article below for more information.
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    -Griff W.

  • Itunes player says it has not been correctly localized for this language, Please choose the English version. It has played fine up until today.

    All of a sudden I can't play my itunes, everytime I click on the icon it comes up with an error message " This version of Itunes has not been correctly localized for this language. Please run the English version. There has never been a problem before. How can I choose a language when I can't even open the program? Thanks for any and all assistance!

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

  • MacAir - error message "This version of itunes has not been correctly localized for this language. Please run the english version" Saw other answers for windows users, I have a MacAir. never used any other language but English

    Trying to open iTunes - get an error message saying "This version of itunes has not been correctly localized for this language. Please run the english version" Saw other answers for windows users, I have a MacAir. never used any other language but English so I have no clue what the problem is.  I just want to update my phone and back it up.

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

  • I've tried to open itunes but just get error message saying this version of itunes has not been correctly localized for this language. Please run the english version

    Looking for some help.  I am trying to open itunes and I keep getting an error message saying "This version of itunes  has not been correctly localized for this language. Please run the english version"
    Can anyone help.

    Hi there nisbetk,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

  • Error message saying "iTunes has not been correctly localized for this language"

    When trying to launch iTunes I'm getting an error message saying "iTunes has not been correctly localized for this language.  Please run the English version"?  Any suggestions are much appreciated and thank you in advance!

    Let's try a repair install of iTunes.
    Restart the PC first.
    If you're using Vista or 7, now head into your Uninstall a program control panel, select "iTunes" and then click "Repair".
    If you're using XP, head into your Add or Remove Programs control panel, select "iTunes", and click "Change". Select "Repair" and click "Next" as per the following screenshot:
    Can you launch your iTunes now?

  • When I try to open itunes it says; This version of itunes has not been correctly localized for this language.  Please use the English version.  How do I fix this problem?

    When I try to open itunes it says; This version of itunes has not been correctly localized for this language.  Please use the English version.  How do I fix this problem?

    Hey KEBENNETT, 
    It sounds like you've restored Windows on your PC and iTunes is no longer opening and running normally. 
    I'd recommend using the instructions found at step 4 and 5 in this article to repair or remove/reinstall your iTunes installation:
    Issues installing iTunes for Windows - Apple Support
    All the best,
    Jeremy 

Maybe you are looking for