NO disk in drive problem if disk cd/dvd rom drive is empty.PLEASE HELP ME part2

Hi All,
To make it easier to see here it is again. Im realllllyyyy desprate, I have my boss breathing down my neck!!!
I'm working on this problem which doesnt seem to be around anymore. I;ve checked the forums but no recent post has been submited ami out of date. Please help me
The problem is that I need to check that hte user has inserted the CD which is needed to run with the application. So i check the labels of all the drives but if a CD rom or any drive is empty I get the "No Disk in Drive. Please insert disk". If i click cancel it works. How do i get it to go away?????????????.
I even disable the system security which is what was suggested in the past but it still doesnt work.
Here is the code
SecurityManager sm = System.getSecurityManager();
// Disable the Security Manager
System.setSecurityManager(null);
FileSystemView fsv = FileSystemView.getFileSystemView();
fil =File.listRoots();
for (i=0;i<fil.length;i++){
if(found==true)
break;
if((fsv.isFloppyDrive(fil))==false){
if(fil[i].canRead() && !fil[i].canWrite()){
list= fil[i].list();
if(list!=null){
for( j=0;j<list.length;j++){                            
if(list[j].equals("SDBSL_CD")){                                    
str= fil[i]+"SDBSL_CD/";
found=true;
break;
System.setSecurityManager(sm);
Any help would be muchmuch appertiated
Ive noticed that when i do:
SecurityManager sm = System.getSecurityManager();
System.out.println("sm"+sm); it returns null
help!

If it is soooo urgent, then perhaps you could help your own cause by making it easier for the rest of us to read your code... Hint [code] tags are there for a reason.

Similar Messages

  • Looking for HP 16X DVD ROM Drive driver

    Does anyone know where I can find a driver for the HP 16X DVD ROM Drive?  I have an old HP 515n and I'm attempting to install Window 7 on it.  Windows 7 is asking for the DVD ROM driver.
    Thanks.

    Lowell, welcome to the forum.
    The only drivers that are available on the Product Specifications page are for XP. Therefore, I don't believe that HP will be developing a driver for the drive. It is possibly too old.
    Signature:
    HP TouchPad - 1.2 GHz; 1 GB memory; 32 GB storage; WebOS/CyanogenMod 11(Kit Kat)
    HP 10 Plus; Android-Kit Kat; 1.0 GHz Allwinner A31 ARM Cortex A7 Quad Core Processor ; 2GB RAM Memory Long: 2 GB DDR3L SDRAM (1600MHz); 16GB disable eMMC 16GB v4.51
    HP Omen; i7-4710QH; 8 GB memory; 256 GB San Disk SSD; Win 8.1
    HP Photosmart 7520 AIO
    ++++++++++++++++++
    **Click the Thumbs Up+ to say 'Thanks' and the 'Accept as Solution' if I have solved your problem.**
    Intelligence is God given; Wisdom is the sum of our mistakes!
    I am not an HP employee.

  • I have an MS word doc saved from a Macbook in my flash drive. Now i want to print this from an IBM compatible laptop. problem is -- I can't access the file. Please help.

    I have an MS word doc saved from a Macbook Pro on m flash drive. Now i want to print
    th same doc from an IBM Compatible laptop. Problem is, I can't access the file. Please help.

    I suggest you post your question on Microsofts own forums for their Mac products as it's their software you're having issues with:
    http://answers.microsoft.com/en-us/mac

  • OS X update 10.9.3 can't be installed on this disk. An error occurred while evaluating JavaAcript for the package. Please help!

    My Apple Store, Mail and update was not working for sometimes, when I download OS 10.9.3 and try to install, error message appear: OS X update 10.9.3 can't be installed on this disk. An error occurred while evaluating JavaScript for the package. Please help!

    iMac (27-inch Mid 2011), OS X Mavericks (10.9.3), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help!

    Having troubles running iTunes! I downloaded iTunes just fine, but when I try to open it, it tells me iTunes is in a locked disk or I dont have permissions to write to this folder. Please help! I purchased an iPod for my son and wanted to put music on it.

    Hello there KRerssig,
    I was looking through our resources and found an article with information regarding that error message. The article is called iTunes for Windows XP: "Disk is locked" or "iTunes folder cannot be found" when installing or opening iTunes found here: http://support.apple.com/kb/HT1866.
    Here is the text but the article contains images for a visual reference:
    Verify the location of your Windows XP My Music folder. The default location for this folder is
    C:\Documents and Settings\username\My Documents\My Music
    If you do not have this folder at the default location and have not moved it to another location, consider creating one inside your My Documents folder.
    Download and install Tweak UI from the Microsoft PowerToys website athttp://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
    Note: This utility is for Windows XP only. Please review the system requirements before installing.
    Once you have installed Tweak UI, open it from the Start menu.
    In the column on the left, click on the plus symbol next to My Computer and select Special Folders.
    In the right pane under Special Folders, choose My Music from the Folder pop-up menu.
    Click the Change Location button. You may see a warning message appear with precautions for changing this setting; after reviewing the message, click Yes.
    In the resulting window, browse for the My Music folder as described in step 1, and click OK.
    Reinstall or open iTunes.
    If these steps do not resolve the issue, the settings for the current user may be corrupted, which could cause iTunes not to install or open. You may have to install and open iTunes in a different Windows user account.
    All the best,
    Sterling

  • BIOS Problems With CD\DVD Rom Drive. Not a Filter Problem

    My Hp Laptop Was Messed up for a while with ramdom 2 sec restarts so i had a tech guy that i know and it was fixed. sadly after a few weeks my CD\DVD Rom drive quit working and was not (and still is) registered in Bios. i reset the BIOS Back to factory settings and had some luck. i worked fine but then when i woke up the next day i was gone again. i does do this often but im getting quite annoyed.. can someone help me with this issue.

    Well, I now have the same symptoms as described in this discussion group. I'd put the CD in the superdrive for iTunes to burn, the computer accepts it, makes it's whirring noise (louder than a couple days ago), nothing comes on screen that says its able to read it, and around a minute or two it ejects the CD.
    These larger 24inch iMacs are NOT the easiest to lug over to the Apple store, especially if taking mass transit! I have not found any solutions described here that works ...short of apple support.
    I am a rather tidy and tech savvy person. No dirty CDs, no warped CDs, no inappropriate force to the drive, etc. Based on the number of similar postings, HAS APPLE ACKNOWLEDGED THIS AS A DRIVE DEFECT YET?

  • PowerMac G5 doesn't work anymore simply due to a DVD-ROM drive removal!

    Hello, here's what's happened (I'll write using the "present" because I'm not English).
    This happened about two days ago:
    I need to read an Ultra ATA hard disk, so I power off the Mac.
    I remove the SuperDrive DVD-ROM and I connect the hard disk in its place (I already made this with other ATA hard disks in past and it always was OK).
    I close the Mac.
    I try to start: nothing! The light on the power-on button of the Screen (Apple Cinema Display 20" plastic) and the light on the power-on button of the Mac case starts flashing 3 times (then stop, than other three times, etc...).
    So I power off. I change the jumper configuration of the hard disk, like the Super Drive. I try again: NOTHING. Always three-times flashing the lights.
    So I power off. I re-install the DVD drive, close the Mac again and restart it.
    SURPRISE: the same symptom! The computer doesn't start and always makes the three-times flashing lights...
    So I tried totally removing the DVD drive, and restarting it without it: nothing: same symptom.
    Unfortunately I made these attempts forgetting to disconnect the power cable of the Mac!
    Then I start trying with other RAM configurations, hoping that just a RAM module got burned. I have 6 ram modules (512 MB each).
    I try lots of combinations... nothing, always same symptom.
    Finally, I disconnect the power cord again, I re-install all the RAM modules, an I try to reset the CMOS: I remove the Motherboard battery for some seconds.
    Than I re-install the battery, close the Mac, connect the power cord, restart it: it works!!!
    I go in System Info, and I see that it doesn't recognize two of the 6 RAM modules: just 4. The slots of the other 2 not recognized DIMM modules seems empty, but there is the ram!
    So I power off the Mac Again. I disconnect the power cord.
    I change the RAM modules positions. I try again: nothing! Again the three-times flashing lights symptom, and always black screen again.
    So I try again by removing the CMOS battery... nothing... always flashing...
    After lots of attempts (also changing again the RAM positions, trying to remember how it was when it worked...)... nothing.
    I power off the Mac.
    After about an hour, I simply try to power on it... IT WORKED!!!
    I used it too... went on Internet, etc... Finished working, I powered it off and went to bed.
    The day after, I tried to power it on... nothing! Always three times flashing lights...
    From that moment, it was totally impossible to let it work...
    I tried to change the RAM positions again... I tried also pressing every time the reset button on the Mother Board... nothing...
    The only different symptom that I obtained, a couple of times, was that the two lights (on the Screen button and on the Mac tower button) didn't flash, but was always on.... but it didn't run anyway: totally black screen.
    How is this possible? Durin 18 years of computer hardware experience, NEVER happened that a computer got broken just removing and re-installing a DVD-ROM drive!
    And I'd never imagined that removing a DVD-ROM could be a dangerous operation... It seems to me just like a car that got broken if I replace the cigarette lighter...
    What do you think? how is this possible?
    If the CPU or the Motherboard or the RAM too got broken... simply it NEVER should run... on the contrary two times it worked very well!... with a broken Motherboard or CPU??? ...mmmm... so strange....
    If the RAM got broken... how is this possible? 6 ram modules burned together??? It seems so absurd... (in past there were 8 RAM modules... one or two got broken... so I removed them and it worked again... but not 6 !!!!).
    Any opinion?
    Any practical advice?
    Prevision of costs?
    Thank you!!!
    Message was edited by: ununpentium

    Hi Wolfman I have an update of the situation.
    We tried moving the RAM modules again... and at one point it worked! With just 2 RAM modules.
    But at the green screen (with the gray apple darker) it blocked.
    So we removed the two RAM modules and installed other two modules: it worked again! These two last modules are 512 MB each.
    So we restarted the system pressing "c" with the OSX DVD in the drive, and it worked! I used System diagnostic OSX utility and it found the 2 ram modules, but of 256 MB each instead of 512 !!! How is this possible? (if they were broken OK, but detect just half of its size seems so strange...).
    Than we restarted it again connecting an OSX bootable external Fire Wire LaCie hard disk (FW400 port), and it worked!
    We used DISK UTILITY to test the internal boot hard disk and it gave me an error (verify disk).
    The Disk utility was unable to repair the disk.
    Another damage!
    I remember that in the past attempts it booted once (not three times flashing) and stopped at the grey screen... (I think: maybe due to the boot hard disk error!).
    Unfortunately this external bootable firewire disk has got some problem and it sometimes blocks itself emitting a "clic".
    So I powered the mac off and connected another newer firewire lacie bootable hard disk. I connected it in the FW800 port. I rebooted and... surprise: three times flashing light again!!!
    No way to let it pass this wall, no initial "sound" again... nothing!
    So I removed the FW800 drive, and changed the RAM again (inverted them, always two internal slots n. 1 and 2): it worked!
    I booted from the FW400 hard disk, and it worked. I was able to backup some data from the internal hard disk (in order to be able to try to solve the error initializing it), and I tried again to boot with the FW800 hard disk (I want a stable system while initializing a drive!).
    As I connected the FW800 hard disk again, I tried to reboot... nothing! Again the three-times flashing light error! No sound... black screen again...
    (So, simply removing a DVD ROM I got RAM broken, maybe the Logic board, the hard disk too... maybe the FireWire 800 port too.... mmmm.... this mac is possessed! And it is connected through a professional power stabilizer too!).
    So after several attempts with RAM, cmos reset, firmware reset (power it up holding the power on button for some seconds), etc... I got it working again...
    So this time I rebooted it pressing "c" and I initialized the internal hard disk using the OSX DVD as boot drive...
    Then I rebooted from the FW400 hard disk and I used CarbonCopyCloner to restore an internal hard disk clone OSX complete installation from a .dmg image file in the FW800 lacie hard disk... but this time I connected it not using the FW800 port but through the USB 2.0 port... and it was able to copy the data.
    The computer was working... able to boot... no three times flashing error... no FW800 connections... always rebooting OK... the internal hard disk initialized, working, with NO errors (disk utility tested), made bootable...
    I tried to reboot again (with no "c" or "alt" pressing, hoping the internal boot hard disk working again): nothing!
    THREE TIMES FLASHING LIGHT AGAIN!!! No way to solve the problem now... always flashing...
    What is happening here??? I don't understand! I use computers (instable DOS/Windows computers mainly!!!) form about 18 years... never seen a so strange behaviour!!!
    We'll try to gather money to replace the RAM, before thinking to a Logic Board replacement...
    Your opinion?
    Thanks!

  • DVD-Rom drive in Satellite C655-S5128 not working properly in Windows 8

    I recently upgraded my system from Windows 7 to Windows 8. However, the DVD-Rom drive after the upgrade no longer works properly -- it now treats the pre-recorded disk as if it was completely blank. I tried reinstalling the Toshiba Disc Creator, but that did not work.
    Any solution?

    You apparently did not use the Toshiba Upgrade Assistant in upgrading to Windows 8.  See HERE for DVD and Disk Creator problems occurring during the upgrade and solutions.
    C.B.
    Toshiba Sat. C75D-B7260 Win 8.1 64 Bit--Toshiba Sat. L775D-S7132 Win 7 HP SP1 64 Bit and Win 10 PRO Technical Preview--Toshiba Sat. L305-S5921 Win Vista SP2 32 Bit

  • My DVD-ROM drive does not work -- what steps should I take?

    MacBook Pro, a couple of years old. Was used by an employee for 2 years, now have it at home and found that the DVD-ROM drive does nothing when I insert a disc.
    What I really would like to know is what are the first steps with this. I don't want to send the machine somewhere. Should I just get a cheap external? Could it be software?

    If by Does nothing you mean it doesn't even pull in the disk. That sound slike hardware not software.
    I imagine it is out of warranty? If it is covered take it to be repaired in a mac store. If not I personally would opt for an external as the cost would be much more appealing. But doesn't hurt to inquire about the cost for having a new internal, or even fixing your current one.
    But for my money I would opt for external.

  • CD-RW/DVD-ROM drive reads DVD's but spits out CD's

    Hi,
    The CD-RW/DVD-ROM drive of my Titanium Pawoerbook doesn't read CD's anymore; it makes funny noises and spits any CD's out again. Funny thing is that I don't have any problems reading DVD's.
    Is there anything I could do to fix this problem?
    Thanks for any advice!
    Malte

    Try using a DVD drive cleaning disc first. Available in most PC shops.My Ti's Superdrive goes through phases of having a bad day making ugly cluncking noises and spitting discs out but the next day works just fine...
    mrtotes

  • CDRW/DVD Rom drive disabled by Panther

    Looks like same problem as dozens of others, but no answers. After upgrading to 10.3.9 the Sony CRX820E is hiding. Toast titanium says "no CD Recorder found" CD's show up in finder but not DVD's. (it is a DVD Rom drive)
    Anyone find a fix for this recurring problem or do we just write it off to "progress"?

    The entire computer is 6 years old almost 7, and it worked fine until recently.
    Maybe its to do with the new power supply I put in, I put a 750 watt power supply in to replace my 250 watt, because I recently got a new graphics card.
    the power supply is plugged in correctly, and my system tells me the drive is there, it just won't read DVD discs.
    I'll give a run down of how putting the new power supply in went:
    1) I found out that the plug I would need for my floppy drive was required by my new graphics card, so I took the IDE cable out of the Floppy drive and motherboard, and plugged the power supplies plug into the graphics card.
    2) After a problem with my computer not being able to find either the DVD Writer or CD drives, I found the problem was a loose IDE cable, which I promptly put back in place, then my computer was able to find the drives.
    3) Afterwards I changed my BIOS a little, I changed it so it wouldn't try to find a Floppy drive, and changed the sequence of booting the system from having the floppy drive boot first to the DVD/CD drives boot first.
    4) I started up my system and popped in a disc for a game, 3 different times the drive refused to work, 3 different times I found a solution that got it to read the disc, then afterwards if I put a different disc in it wouldn't work, and the fix wouldn't work a second time.
    I hope this helps answer me, but here is another question. Can a device be plugged in to any IDE port on the motherboard? If so, is it possible using the IDE cable to plug the DVD drive into the port the Floppy drive was plugged into might help?

  • Very loud vibration from new Mac Mini DVD ROM drive

    Good evening all.
    I bought a new design Mac Mini 3 days ago. Today I decided to re-install the OS and found the following :-
    1. The DVD drive makes a horrendous vibrating noise like an out of balance washing machine.
    2. The usual method of booting from DVD ROM is to turn it on whilst holding the C key down. Mine just freezes to a white screen. This is reproducible every time. This boot method method has always worked for my iMac.
    3. The alternate method of setting the boot disc in boot disc preferences to boot from DVD ROM worked on the second attempt. The first time it said Its own OS disc was an unformatted DVD ROM.
    Anyone else with problems with VERY noisy DVD ROM and/or booting from its own DVD ROM ?
    regards
    videodrone.

    Yeah my new mini does the same thing. Funny thing is that it doesn't d it all the time. I know the other day, I burned a DVD with iDVD which took about 8 minutes. It was so loud That I didn't even thing the DVD would've burned correctly but it burned fine.
    I installed Grand Theft Auto 4 when I booted into Windows XP Pro and the Super Drive Went To all sorts of Speeds, but Know Vibration. *It's a random thing, or maybe these superdrive are very sensitive to imperfectly made Discs.* *I have a Late 2006 iMac 17" which is very sensitive to an HP Printer Install disc which vibrated like crazy. But with ALMOST every other disc I throw at it, it burns and spins just fine and quietly.* _It's like putting Regular 87 Octane Fuel into a Lamborghini, it will run terribly unless you put the good stuff/ Higher octane fuel in it._
    Luckily or me, *I have a MacBook Air SuperDrive. These Drives do work on all the new Minis*. SO because of that, I'm not going to rush out for a repair right now. Unless I know in advanced that I will be in the same area of the Apple Store ( 25 miles Away / 50 miles round trip) ).
    Message was edited by: Christian Rosario

  • DVD+R not reading back on some DVD-ROM drives

    The recording device is the built-in SuperDrive on my iBook G4 1.42. I've been archiving copies of my photos to recordable DVD. It's usually 2 copies of each set - one in DVD+R and one in DVD-R. I store each set in a different place.
    My preferred media is (Made in Japan) Taiyo-Yuden media sold under the FujiFilm and Sony label. So far, the spindles I've opened and used are the FujiFilm (8x-listed) DVD+R (regular silver label) and DVD-R (from the "Color Tower" package).
    The DVD-R recordings seem to read back fine in most DVD-ROM drives I've tried. I have a circa 2001 PC with a DVD-ROM drive, and it doesn't read back the DVD+R copies. It'll just whirr for about 20 seconds and then just stop without the disc mounting. All DVD recordings seem to read back just fine on my iBook G3 600.
    Are there any known problems with readback of DVD+R recorded from OS X on some DVD-ROM drives? I figure I'm eventually going to get an external drive that also records DVD+R (I'm thinking that would present the fewest compatibility problems) or a new machine (it's about time after five years).
    14 iBook G4 1.42 1.5GB (10.4.3), 12 iBook G3 600 640MB (10.3.9)    

    Just a note of interest. If your machine is 2001
    vintage, my guess it doesn't like + media at all.
    There are some reports that in some cases that these
    older drives can read them sporaticlly at best, this
    is normally caused by the poor quality of some
    manufactures.
    It's a Sony VAIO desktop with a Pioneer DVD-ROM drive. I don't know about "quality" per se, but it probably finicky.
    I find that using the best quality media eliminates
    many problems. And I realise that it is more
    expensive to use this media but in the long run it's
    worth the extra money.
    Have a look at the Media Guide below.
    http://www.digitalfaq.com/media/dvdmedia.htm
    Cheers Don
    Like I said - Taiyo Yuden all the way unless it's maybe sometime like video storage where it's no big deal. I just got three spindles of MIJ (had to look carefully for that) Sony 16x DVD-R for $12.99 each at CompUSA. They didn't have it on sale, but they price-matched the $12.99 price at Best Buy (my local store only had made in Taiwan stock). I was next to the manager at the customer service area, and she said I could have as many as I wanted at that price. If it were some expensive item, I think I would have been limited to one or two.

  • Using the DVD-Rom drive renders MBP almost useless

    Under Windows XP Pro on my 2.2 MBP, while accessing the DVD-Rom drive for anything (browsing directories, installing something, playing/burning a DVD or ripping a CD) the computer cannot playback audio. It comes out so skippy and jumpy that you cannot recognise speech. It slows down typing input, mouse movement, and makes video playback skippy. It also hangs up my soundcard (M-Audio Firewire 410), and I have to restart the computer to get sound to work again. I have installed the Bootcamp 2.0 drivers from the Leopard disc.
    Does anyone else have this problem, and have you found any way to fix it? Thank you.

    Anyone?

  • Playing DVD+RW discs in DVD-Rom drive

    I've got a Toshiba SD-M1222 DVD-rom drive. I recently bought a new separate domestic DVD+RW machine.
    Discs recorded on the DVD+RW play back no problem in my other domestic DVD players, but when I try to play them in my DVD-Rom on the PC, I get a 'disc not recognised' message, even though I have set the recording up to be compatible with other players.
    Is there a way I can get DVD+RW discs to play on this DVD-Rom drive?

    Hi
    Sorry but there is no way to change it. Those are two different formats. I have the same situation with my Satellite.
    If you want to have more information about DVD formats google a little bit around.
    Bye

Maybe you are looking for