Using JSDK 1.4, How can I get disk names in Windows system?

Using JDK1.3,I can got disk names via:
FileSystemView.getFileSystemView().getRoots();
Or, aFile.listRoots();
Now, I will switch to JSDK1.4, the aformentioned methods only returns me "D:\Documents and Settings\Administrator\desktop", no disk name returned.
So, How can I get them back?
Note: To keep compatible with JSDK1.3, I do not want to use new APIs since 1.4.
Thank you in advance.

I get mine at NetBeans:
FileSystemView.getShellFolder: f=C:\Program Files\NetBeans IDE 3.5\::{450D8FBA-AD25-11D0-98A8-0800361B1103}
java.io.FileNotFoundException
at sun.awt.shell.ShellFolder.getShellFolder(ShellFolder.java:197)
at javax.swing.filechooser.FileSystemView.getShellFolder(FileSystemView.java:459)
at javax.swing.filechooser.FileSystemView.getSystemIcon(FileSystemView.java:179)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$ShortCutPanel.<init>(WindowsFileChooserUI.java:592)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:355)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:130)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:175)
at javax.swing.JComponent.setUI(JComponent.java:445)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1701)
at javax.swing.JFileChooser.setup(JFileChooser.java:345)
at javax.swing.JFileChooser.<init>(JFileChooser.java:320)
at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
at Infoseer.<init>(Infoseer.java:265)
at Infoseer.main(Infoseer.java:3820)
java.lang.NullPointerException
at javax.swing.filechooser.FileSystemView.getSystemIcon(FileSystemView.java:180)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI$ShortCutPanel.<init>(WindowsFileChooserUI.java:592)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:355)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:130)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:175)
at javax.swing.JComponent.setUI(JComponent.java:445)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1701)
at javax.swing.JFileChooser.setup(JFileChooser.java:345)
at javax.swing.JFileChooser.<init>(JFileChooser.java:320)
at javax.swing.JFileChooser.<init>(JFileChooser.java:273)
at Infoseer.<init>(Infoseer.java:265)
at Infoseer.main(Infoseer.java:3820)

Similar Messages

  • How can i get rulefiles name in  appllication with using custom java code.

    Hi.
    I want to get rulefiles names from analytic service with using java api.
    How can i get rulefiles name. Which api can i use for this issue?

    Hi,
    Use IEssCube.getOlapFileObjects() api to retrieve rule files.
    Insert this code snipid in your code, it will list all the rule files.
    IEssCube cube = olapSvr.getApplication("Sample").getCube("Basic");
    IEssIterator itr = cube.getOlapFileObjects(IEssOlapFileObject.TYPE_RULES);
    IEssBaseObject[] rfs = itr.getAll();
    System.out.println("Rule file count: "+rfs.length);
    for (int i = 0; i < rfs.length; i++) {
         System.out.println("RuleFile"+i+": "+((EssOlapFileObject)rfs).getName());
    you can also list data files and other file objects by changing IEssOlapFileObject.TYPE in getOlapFileObjects()
    Regards
    Rajeev Singh

  • Just replaced my iphone 4 with new 4.  restore from icloud is hung on an app I no longer use (password probably expired) how can i get the restore to move on to the next app

    just replaced my iphone 4 with new 4.  restore from icloud is hung on an app I no longer use (password probably expired) how can i get the restore to move on to the next app

    Read another post in the forum about this and it appears this app also installs a profile with a proxy service that you will have to try and delete as well. Check that out.

  • I did the 8.0.2 update and no longer have my speak to text microphone down by the smileys.  Don't want to use audio text.  How can I get this back?

    I did the 8.0.2 update and no longer have my speak to text microphone down by the smileys.  Don't want to use audio text.  How can I get this back?

    Hey there tjbliven,
    It sounds like you are not able to use the dictation feature of iOS 8, becuase the microphone icon is missing. It seems to me like Siri may be turned off, which would cause the icon to not be there:
    Siri settings - iPhone
    To set options for Siri, go to Settings > General > Siri. Options include:
    Turning Siri on or off
    That should get the dictation feature back for you.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Frequently I will be asked to sign in to my Apple account, but it is using an email I don't use with Apple. How can I get this to stop?

    I use an iPod4 Touch and am using IOS 6.1.6. Frequently I will be asked to sign in to my Apple account, but it is using an email I don't use with Apple. How can I get this to stop? This is happening repeatedly throughout the day. I don't have an Apple password for this email address, nor do I want one!

    Maybe an App that needs updating was purchased by that account?
    Could someone have installed an app not purchased with your account?
    Can you post a screen shot of the message?

  • HT1212 I no longer have an iPhone but still use iTunes...how can I get iTunes to forget my phone

    I no longer have an iPhone but still use iTunes...how can I get iTunes to forget my phone

    What do you mean forget your phone? iTunes will still function just find without the phone. I'm not sure what you want it to do.

  • I got locked out and changed the password. it did not work and now its disabled for 60 minutes. I dont use itunes, or icloud. how can I get in and why wont it work.

    I am locked out of my iphone. I changed the password and it still wont work. I changed it again and it is now disabled. I do not use itunes, icloud. How can I get into my iphone? I have changed my password and its not working. how can I start over?

    Follow the instructions in this support document. http://support.apple.com/kb/ht1212
    Without a backup, the use of iTunes or the use of iCloud, your only choice is to restore the device as new to remove the passcode.

  • Network : How can I get  the name of all computers in the lan ?

    Hi.
    Network : How can I get the name or the IP of all computers in the lan ?

    Easiest way to find all IPs would be to scan the network. Ping every possible IP in the network and all IPs that replied to the ping exist.
    Since I don't know how to do a ping in Java, I would scan for some Ports used by OS Services.
    Since I don't know which ports are used by windows, I think you should look for a ping class (or library).
    Scanning all ports for every IP in a class C network shouldn't take too long. And after finding one port you don't have to try the other ports for that IP, since it has to be online ;)

  • How can I get interface name ?

    Hi there.....
    I wonder that how can I get interface names?
    We can get interface name using by "netstat" or "ifconfig".
    But I don't want to use system() or execl() function.
    Is there any function similar to netstat or ifconfig ?

    See the inet(7P) or inet6(7P) man pages for the
    programatic interface to the interface, to get its
    IP settings, and then look at the
    gethostbyname(3SOCKET) call for IPaddr to hostname
    resolution.

  • How can I get back to default in System pref/ displays/ color. iMac 10.9.5

    How can I get back to default in System pref/ displays/ color?  iMac 10.9.5

    Select the iMac option.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • Installed office for mac (trial version). now I got 2 excel files, which cannot be deleted. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion(with win 7 parallel)

    now I got 2 excel files, which cannot be deleted on my desktop. I can't open them, either. I googled the names of the sheets and found chinese websites I never visited. Are those dialers? How can I get rid of them? system is mac lion (with win 7 parallel)

    The people who make that stuff have their own forums you can also search/ask in:
    http://answers.microsoft.com/en-us/mac/forum

  • My 1st ipod was lost. My library is on a Dell with Windows.  I registered my new ipod to a Mac.  How can I get my library from Windows onto my new Ipod?

    My 1st ipod was lost. My library is on a Dell with Windows.  I registered my new ipod to a Mac.  How can I get my library from Windows onto my new Ipod?

    Thank you for your help.  I am still having trouble.  As you can tell, I am not technologically advanced AT ALL.  My music is all showing up in the library but when I go to file in the top left corner, Sync is greyed out and I cannot select it.  I'm gonna continue to try this.  It's been a long time since I had my 1st ipod and things have changed so much I will probably need to research this stuff.  Thanks again for your help.

  • How can I get the name of a output module template

    Hey guys,
         SDK newbie here.
         How can I get the name of every output module template?
         Thanks
    Zhiqiang Li

    Ok. Bravo
    Please mark this as 'Answered' - it will help others on the forum -

  • How can I get icloud on my windows xp PC.

    how can I get icloud on my windows xp PC.

    You can't.
    http://support.apple.com/kb/DL1455
    System Requirements
    Microsoft Windows Windows Vista SP2 or Windows 7
    Safari 5.1.1 or Internet Explorer 8 or later
    Microsoft Outlook 2007 or 2010 recommended

  • How can I get parameter name?

    ODatabase odb("test", "scott", "tiger");
    OParameterCollection params = odb.GetParameters();
    -------> and next how can I get parameter name?
    I hope get stored procedure parameter names and settiing parameter Add just like below.
    Plz tell me how can I get parameter name?
    I'm Korean, and my english is poor. sorry : )
    // add a parameter named 'DEPTNO'
    params.Add("DEPTNO", 20, OPARAMETER_INVAR, OTYPE_NUMBER);
    // add a parameter named 'EMPCURSOR'
    params.Add("EMPCURSOR", "", OPARAMETER_OUTVAR, OTYPE_CURSOR);
    //Execute the SQL statement
    odb.ExecuteSQL("BEGIN Employee.GetEmpData (:DEPTNO, :EMPCURSOR); END;");

    ok, alright. I'm trying to write a program to easily test EJBs with a user giving input and directly seeing the results of function calls to the Bean. The user gives the JNDI name of the EJB, I instantiate the bean, give the user a list of function calls from the bean, and then he/she chooses the function they want to execute and give input of the parameters values they want. Everything is done remotely and at runtime, and the only real problem is that the user only sees "myFunc ( String )" and it would be confusing if there are several parameters of the same type.
    Yes, I do realize there are other ways to test, I was developing this to try a new method that I thought could be beneficial to me.

Maybe you are looking for

  • How to handle multiple session in ADF using jdevloper11g

    Hello All i want to use the form in Multiple sessions. i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left.but data base dont give the error to him. but next day he will come at the next day to c

  • Security deposit Clearing Problem

    Dear Team, I am encountering a proglem while clearing the security deposit amount.Though i have made payment and as well transfer the reconcilliation key and done the clearing too.But the system is still showing as a un Cleared item ,am I missing som

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow. I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body

  • Java, Oracle, and Arabic Characters

    Hi, I need to run some Forms fmb files that contain Arabic characters through Oracle's forms to xml converter (frmf2xml.bat). The XML that is generated by the utility contains strings such as "رقÙ- الÙ-وظÙ�" instead of the Arabic characters I w

  • Row-base security - mulitiple dimensions

    Hi I filter data using the row-wise initialization. In groups, in security filter, the logical SQL is eg.: Group "Region 1" has filter: DM."Dim Region"."rg_id" = VALUEOF("R1") Group "Region 2" has filter: DM."Dim Region"."rg_id" = VALUEOF("R2") R1, R