Find system drives with JDK 1.1.8

hello,
i cannot use the listRoots() function in order to get the system drives because i am working with JDK 1.1.8 and in this this jdk i didn't find any simple function to do so..
does someone know how to get the system drives with this jdk (1.1.8)???
please... :-(

This would be a lot better in 1.2, but this should work in 1.0+
public class FileRoot {
     public static void main(String[] args) {
          File f = new File(args[0]);
          File root = getRootOfDrive(new File(f.getAbsolutePath()));
          System.out.println("The Root is:"+root);
     private static File getRootOfDrive(File f) {
          String parent = f.getParent();
          System.out.println(parent);
          return (parent == null)? f : getRootOfDrive(new File(parent));
}

Similar Messages

  • How do I place my files on a separate hard drive from the system drive with OS X?

    I have a mac pro and want to place my files on a seperate hard drive to the system. Can anybody please ad vise me what I have to do to achieve this. My OS X is Lion 10.7.5

    Drag and drop will normally work if the separate hard drive is formatted right:
    https://discussions.apple.com/docs/DOC-3003
    Mind you, an external hard drive is the ideal way of backing up data.   Software such as Carbon Copy Cloner or Time Machine can be used for backing up, and is much faster than using the Finder for drag and drop, and will ensure the entire system gets backed up.  
    Time Machine offers whole unbootable system backup with archiving.  Each archive has a temporary existence as long as the backups are automatic.  When you make them manual, you can copy them off to a non-time machine source to ensure they exist longer.  The larger your destination drive, the longer the archives last.
    Carbon Copy Cloner is used most often for clones, and it maintains an exact replica of the original, deleting anything the original had deleted on the copy that it makes, and its backups are bootable when they are successful.  It offers archiving options, but they aren't as transparent as Time Machine.
    Firewire 800 is faster than USB 2.   PCI eSATA and Thunderbolt cards are faster.  The ability to boot the PCI based cards varies by card.  But the SATA drives can be inserted internally if you want them to be boot.  Some SATA drives need a jumper to be able to be read by your 1.1's slower internal SATA bus speed.  Check with the hard drive vendor.  USB 3 cards exist as well, though I've heard USB 3 has difficulty with WiFi interferance.

  • How to find jars compatibility with JDK 6

    Hi All,
    Could you please let me if there is any way to find out if a given jar version will be compatible with the JDK version 1.6 (i.e. java 6)?
    Let’s say I have Junit version 3.8.1 currently and it is working fine with current JDK version 1.4.2_11. I want to upgrade JDK version to 1.6 (java 6), then how to find out current JUnit version will be compatible with JDK 6? If not how to find out which version of Junit will be compatible with JDK6?
    Please let me know if you need more info.
    Regards,
    psg

    spring_1_2_5.jarI assume you are using spring framework 1.2.5.
    In this case, you should look at this framework documentation/change log to see what the requirements are.
    I think you could download spring framework 1.2.5 bundle (with dependencies). You can then look at the META-INF/MANIFEST.MF of every of jar
    (especially third party libraries) in order to know its version.
    Every framework release must have been tested and compatibilities resolved, so the job of finding what jar goes with this release is already done.
    Example (spring 1.2.x):
    fixed JdkVersion to properly detect JDK 1.6/1.7 (Java 6/7) as higher than 1.5 (Java 5)See [change log|http://static.springsource.org/spring/docs/1.2.x/changelog.txt] here
    Hope it helps

  • Why can't I Erase system drive with Security Options?

    I'm getting ready to return my MacBook Pro and I want to wipe the system drive. I've booted in recovery using cmd+r. I opened Disk Utility, selected the SSD drive and the Erase tab. The Security Options button is grayed out. How do I securely erase the drive?

    That's not available on SSDs; performing a regular erase is enough. Click here for more information.
    (110615)

  • Mac Pro can't find hard drive with Snow Leopard installed on

    Hello there,
    I have a three harddrive setup.
    Harddrive 1 is in bay 1 and has two partitions.
    1: For system and apps
    2: For Documents and stuff
    Hard drive 2+3 are in Bay 2+3 and are combined to a RAID 0 drive.
    Some time ago I installed Leopard and the brand new an formatted hard drive.
    It happened that it always took 2 start ups to run Leopard because always on the first time it didn t find the system on hard drive one. Pushing the 'D' button often helped.
    Of course that was nothing to work with, although I at least could get some work done, once I loaded Leopard successfully.
    So I tried Disk Utility, fsck without success.
    I also tried the way of using fdisk to mark the partion as active, which only resulted in now not being able to boot at all.
    Booting from DVD I also tried choosing my Leopard install on my hard drive as boot device (it has always shown up here) but still without success.
    I am afraid things are quite messed up, since there were a few things happening at one time, which I am not overly happy about now. (Installing new RAM, installing SNOW LEOPARD on the new harddrive 1 in bay one, having still the RAID with LEOPARD on in bays 2+3).
    I am already certain to do a fresh and complete reinstall of the system, I have my backup, but still there is some iTunes music and a few documents I haven't backed up yet, which I'd rather would not like to lose...
    Put it short:
    What could I do to get my system running at least once?
    Thanks a lot,
    max.

    After some research I found out about the nice TargetDiskMode which I used to save all my important data with my MacBook.
    http://support.apple.com/kb/HT1661
    Ready to perform a complete and fresh install now!
    Max.

  • Detecting an installed printer-driver with jdk 1.3

    Hi all,
    is there anybody who knows how to detect all installed printers and how to figure out which printer is choosen by user? I can not find anything about this topic...
    Thank you in advance - netti

    John,
    In the case of the R800, 3.0 has been around for about one year. However, 3.09 was first posted to Epson Europe on 29 October 07 and 6 November 07 to Epson Oceania (Australia and New Zealand). The driver is supposed to be fully compatible with Leopard, but I have no way of checking. According to both Europe and Oceania, drivers for the remaining R series printers (1800, 1900 and 2400) are due out later this month.

  • Error on NT with 8.1.6 OCI driver and JDK 1.2

    I have the error:
    "The procedure entry point slzsetevar could not be located in the dynamic link library oracore8.dll"
    oracore8.dll is 8.1.5
    ocijdbc8.dll is 8.1.6
    Any help will be great.
    Thanks,
    8.1.6 OCI driver with JDK 1.2

    when using a jdbc oci driver you must have a matching oracle client installed.
    (fyi -- an oem install is not considered to be an oracle client install)
    use the jdbc oci 8.1.6 driver only from a platform with the oracle 8.1.6 client installed.
    what you've indicated is you're using an 8.1.6 jdbc driver with an 8.1.5 oracle client -- that will not work.
    move to an all 816 client and jdbc driver to "synch up" the dll's you mentioned.
    null

  • Help - Unmounting external USB drives causes error to system drive

    Hi,
    I am having problems with my Mid 2009 24" iMac OS 10.6.7. When unmounting external drives(usb OR firewire), I get either a message that "your computer must be restarted...." or sometimes system freezes.
    Upon reboot and examining system drive with Disk Utility, I will find file count and/or folder count errors. I must then reboot from my SL disc, repair the errors and reboot, after which the system seems to run without problems...
    So far, upon reconnecting and mounting those external drives, I have found no errors or anything that would lead me to believe that they were not unmounted correctly...
    Any help with this would be appreciated. It is beginning to be frustrating to go through this crash and repair of the system drive each time I try to use an external drive....
    Thanks,
    JP

    I have heard others with this problem so I am really surprised none here can help.  My iMac has just crashed for the third time with corrupted disks because of this problem.
    I will try Macfixit or something.  Thanks

  • I want to replace my main system drive:

    Hi all:
    I can't seem to find a clear answer on this:
    I bought some new drives and would like to replace my main system drive with one of the new drives. It's a bigger drive, 1TB as opposed to 250Gb.
    Is it true that I can use Disk Utility to re-image the main drive onto a new drive, then replace the previous system drive with the new mirrored drive?
    Please advise. I've found nothing on the site to help me out other than a previous post that seems to indicate that I can do this. If you have details, please share them. Thank you!
    -Pete

    Either Carbon Copy Cloner or SuperDuper will be more convenient.
    You can, in fact, use Disk Utility for this without creating a disk image in between. You just need to go to the Restore tab and drag the current volume (from the sidebar) to Source and drag the new volume to Destination. Make sure you drag the volume (indented under the drive) and not the drive to the Source and Destination fields; this is a volume to volume operation. Check the +Erase destination+ box to make the copy exact. After double-checking that you did not reverse the source and destination , click on the Restore button.
    The inconvenience is that you can't be booted from the volume you want to duplicate. So if that volume is your startup volume, you need to restart from the Mac OS X installation disc and run Disk Utility from the Installer's menu bar (or start up from another bootable volume).
    The non-Apple cloning utilities use a different method for duplicating, and they can duplicate the startup drive.
    Since you have a Power Mac G5, you can mount the new drive in the second internal bay. All the cables and screws are already in the case. There is no need to "replace" the existing drive, and there is no functional or operational difference between the first and second bays.

  • A way to solve hard drive with slow read write speed

    Just to share.
    Currently I am trying to upgrade my Mac Pro 2008, and replaced the 2TB startup disk with a 120GB OWC SSD.  After the OS installation, I started to move my photo library to a bigger 2 TB hard drive in Bay 2.
    After completion, I started to import the photos to Aperture 3, but it crashed and failed to complete. I had a feeling that something wrong with my hard drive that holding the picture files, therefore, I tried to copy the disk to an external Firewire Hard Disk, the copy was very slow and showing an effective copy speed of 2 MB/s.
    Disk utility, repair permission did not help and proved it was ok.
    I did a Google search, and a Mac user suggested to use an Apple software called "TechTool Deluxe", therefore, I might as well have a try.
    After a few tests, it did show up an error and asked me whether I would like to repair it, so I clicked Ok.
    It took a second to repair and now the copy speed showing 50 MB/s.

    Sounds like trouble with non system drive; with where the preference for where Aperture library is perhaps?
    You have a couple backups of your drives in case you want to just update changes and reformat.
    Is the old system drive and OS still around? might want to pull that. Eliminate confusion, cross-link of files or paths.
    With SSD you want to clone and have a system image for restore - same as anytime, but even more so.
    I've read but never understood the problems people have had with installing or cloning Mac OS to an SSD, but seems "real" nonetheless. And some problems with setting up Aperture was mentioned.

  • Unlocking a Bitlocker Drive with as USB Key - Possibilities

    Hello Everybody,
    we have a big Rollout where we have to move data from Windows 7 Enterprise Bitlocker encrypted Systems to new Windows 8.1 Systems. The data Transfer will be managed with USB <-> SATA Adapter which means the old encrypted Windows 7 drives
    will be plugged to the new Windows 8.1 Clients. Since we have to do the Migration the way i just described please do not discuss alternative Migration methods ;-)
    So if we connect the drives to the Windows 8.1 Clients they are of course locked and we have to unlock them to be able to copy the data. I already managed to get/modify/create two scripts.
    One gives me a text file for every encrypted drive including the Password ID and the corresponding Recovery Password.
    The file is a Text file and can be read by Notepad.
    The other script gives me a so called Key Package for every drive.
    https://technet.microsoft.com/en-us/library/dn383583.aspx#BKMK_AppendixC
    The file is binary and crypted and have no file Extension.
    So here are my questions:
    The old systems have a System Drive and a Data Drive. When unlocking the Data Drive with the Windows 8.1 GUI Methods i have an Option called "load key from USB drive" - when i select this it automatically unlocks the Data Drive when a
    USB drive is connected where is stored the previous generated Text Files.
    When i now try to do the same for the encrypted System Drive, the option "load key from USB drive" is not appearing. Why is this? Is it a general Topic with System drives or is it a configuration issue?
    Talking about the Key Package files generated by the script linked above:
    I have no idea how to use this Key Package.
    Maybe someone can help me out with this.
    Thanks so far and Greetings
    Paddy

    Hi Paddy,
    How you configured to lock the system drive with bitlocker?
    You may take a look at the link below, see if it could help you here:
    Scenario 6: Specifying How to Unlock BitLocker-Protected Operating System Drives (Windows 7)
    Best regards
    Michael Shao
    TechNet Community Support

  • Replacing system drive

    Hi there,
    I want to replace my system drive with a larger drive. What is the best method for copying over the entire system drive and make it bootable as it will become my new system drive?
    Cheers,
    Noah

    The method I usually like is to clone out your current drive to your new drive (buy an external drive enclosure for the purpose) using Carbon Copy Cloner or SuperDuper. Once done, boot up holding down the Option key to make sure the new drive is bootable. Then physically swap the drives. You can use the old drive in the enclosure as a spare or backup drive.
    Matt

  • HT1341 I have a new mac pro with Mountain Lion 10.8.1 but cannot connect to my Canon 6000B printer and can't find a driver download on the net - can anyone help on this?

    I have a new mac powerbook pro OS X 10.8.1 and cannot connect to my canon 6000B printer - the printer appears in the printer list but will not install and I can't find a driver on the net - does anyone know what the solution is?

    dino1335 wrote:
    Thanks for getting back. I need help here
    1 What do you mean by System Information? Is that System Preferences?
    System Information is located in Applications > Utilities. It shows lots of information about your Mac, including information about the printer queues.
    dino1335 wrote:
    2 When I go to System Preferences and click on the printer LBP6000/LBP6018 there is no information in that window about the URI if I click Open Print Queue there is no information other than the ID of the printer
    In previous versions of OS X you did see this information via the Options & Supplies pane for the selected printer in Print & Scan. But with 10.8 this information was removed so know you need to use System Information > Printers to see information about an installed printer.
    dino1335 wrote:
    3 If I print a document it just goes to print (it goes through the printer but no information is printed on the paper) there is no print cue so I don't know where to find the information on the URI or what I am supposed to copy
    I believe that the document does not print because the print queue has not been created correctly. The CAPT driver requires a specific queue name and if the queue name is wrong then you will not be able to print.
    dino1335 wrote:
    FYI I also have a MacBook Pro (old) with Leopard which I also print to the same printer on and there isn't a problem with that just with this new MacPro which has Lion installed
    Not surprised to read that. Mtn Lion has caused some issues for owners of CAPT printers, especially if they upgraded to 10.8 from 10.7 or 10.6.
    Since you mention the ability to print on 10.5, I just want to check that you are physically moving the USB cable connected to the LBP from the 10.5 Mac to the 10.8 Mac, rather than sharing the printer from one Mac to the other. Because if you are sharing the printer from the 10.5 to the 10.8 Mac then this can be a cause of your current issue. The CAPT driver does not work when it is being shared to other Mac's.

  • Hi Everyone.  I have an old Mac Book.  I have saved a ton of emails in my inbox 'On My Mac'.  There are so many it is slowing down my computer.  Where do I find the folder with all the emails so I can cut and paste them to an external hard drive?Pls.help.

    Hi Everyone.  I have an old Mac Book with software updated to 10.6.8.  I have saved a ton of emails in my inbox 'On My Mac'.  There are so many it is slowing down my computer.  Where do I find the folder with all the emails so I can cut and paste them to an external hard drive? Pls.help.  Tks.

    Depending on which email client software you use
    the files should be in 'your home folder' library, esp.
    if you use Mail application.... ~/Library/Mail
    Since you don't specify what mail application,
    that would most be associated with the file.
    I notice there are some items to the right of your post
    where it says "more like this' so that may be worth a
    look to see if similar issues were answered. Also, the
    Help viewer in your system is a searchable database.
    Seems that google also brings up fair information, too.
    Do you have a complete bootable clone of your entire
    Mac system on an externally enclosed hard disk drive?
    Good luck & happy computing!

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

Maybe you are looking for

  • (Need Help) how to clear the recently opened file list on Flash Player 11?

    excuse me pals, may i ask how to clear recently opened file list under "File" tab on Flash Player 11 (the standalone player) ? i've tried to browse my registry but i can't find the solution (and i can't find the .mru files containg the list). my OS i

  • Problems with auto upgrade Anyconnect 3.1

    Hello, I'm having problem with auto upgrade of Anyconnect 2.5 to 3.1. Here is the situation : I have ASA5510 running ASA 8.4.5 and clients are running Anyconnect 2.5.3055 and 3.1.00495 with 2 different profiles. Clients with 2.5 can upgrade to 3.1 bu

  • FCE 4 and Macbook memory...

    Just bought Final Cut Express upgrade to version 4 - but, have realised the system reqs say I need min 1 GB of disk space. My macbook Pro has only 512 MB. Is there a way round this? I was running the previous version of FCE no probs - I have a La Cie

  • Acrobat XI Pro flickers when Editing forms

    Hello, I am using Acrobat to create documents which can contain quiet a decent amount of fields (like 90 or more). Acrobat flickers on a regular basis when I start to edit these fields (meaning the fields are loaded again and again from top to bottom

  • HT201441 NEED HELP FOR ACTIVE PHONE

    HELLO AND GOOD DAY I AM SHIP CHANDLER AND SUPPLY CARGO VESSLES . I BUY ONE IPHONE 4 FROM ONE RUSSIAN CAPTAIN AND I'M NOT ACTIVE IT INSIDE THAT VESSLE AFTER THAT VESSLE SAIL I CHECK PHONE AND I TRY TO ACTIVE AND USE IT BUT I SEE THIS MESSAGE THIS PHON