Saving my program to a floppy disk

I am trying to save my program to a floppy and disk and when I go to run the bytecode I get this error message:
Exception in thread "main" java.lang.NoClassDefFoundError: a:\FirstProgram
I don't know why. Any suggestions would be great.

Exception in thread "main"
java.lang.NoClassDefFoundError: a:\FirstProgramThat's a very peculiar error for the specified problem. Post some code.
One way to do it would be:
if(System.getProperty("os.name").indexOf("windows") > -1) {
   File[] f = File.listRoots();
   for(int i = 0; i < f.length; i++) {
       if(f.startsWith("a") || f.startsWith("A")) {
           saveFileToDisk(f);
} else { // Assume an unix variant
   if(new File("/mnt/floppy").exists()) {
         saveFileToDisk(new File("/mnt/floppy"));
}Although that implementation is really weak. You should maybe show a file dialog and let the user pick a spot where to save.
Tuomas Rinta

Similar Messages

  • G4 floppy disk

    Hello ,
    I have an old version of Cubase VST [4.1],and I would like to use it with my G4 ,just to have fun. Because this software has a protection system with a floppy disk ,I need to use a floppy disk drive with my G4, to authorise my hard disk for use with Cubase VST.
    Would it be possible to connect a pc floppy disk drive? It happens to have one sitting.Could I use a pc cable,or do I need a special cable to connect it ?

    Would it be possible to connect a pc floppy disk drive?
    Only if it is a USB drive. Albeit special Mac driver software may be needed, many of the USB floppy drives (connected to a normal USB port) are usable for both platforms.
    Please note that a USB floppy drive cannot handle 800K Mac-formatted floppies (only 1.44 MB).
    Also, even if a USB drive would be compatible, do not automatically expect a program on the floppy disk to work with the G4. You may face both hardware and software limitations.
    Jan

  • How do I get my MacBook Air w OS X Yosemite to read 2.5" floppy disks from my 512?

    Legacy people help!!!! I have a Mac Book Air with OS X Yosemite and an external floppy disc drive but I can't get the MacBook to read any of my old disks--not even the program disks! How do I get it to read these disks (They were originated on a Mac 512 MANY years ago.) Trying to get my new computer to read my old disks very important data in Word 3.0 (Have original program disk)

    You mean 3.5" floppy disks.
    The problem is that the floppy drive in a Macintosh 512K was for 400K disks (a special Macintosh format).
    http://support.apple.com/kb/SP187
    A Macintosh 512Ke could use 800K.
    http://support.apple.com/kb/sp188
    An external USB floppy drive is not capable of handling 400K, nor 800K. There are also software limitations with modern computers.
    Do you still have the Macintosh 512K? Do you have access to another Macintosh computer with a built-in floppy drive (if yes, please post back with the model and operating system)?
    Jan

  • I've got a system 7.1 folder that contains a disk tools.image how can i put this on a floppy disk?

    I got myself a PowerBook 165 that has a moved file in the system folder thats stopping it from booting up. I downloaded a system 7 disk tools.image off the internet but the only thing is that I don't know what to do know. I got a usb floppy drive that I use sometimes for my pc stuff but sice mac os 10.8 dosn't have support for HFS I can't copy the image on to the disk. I also have a imac from 2000 that can read HFS files and write them but when ever i try and use disk utility to copy the image over to the floppy disk it always gives me an error. Can someone please help me? I really want my PowerBook to work again.

    Was that on the G3 iMac, under Mac OS 9.2 or 10.4?
    Is StuffIt Expander installed and active? If so, you could check whether the StuffIt Expander preferences are set to mount images (choose not to instead).
    Anyway, download the Network Access Disk 7.5 file (preferably when the machine is running Mac OS 9.2). Use StuffIt Expander to decode the MacBinary (.bin). The self-expanding archive (.sea) will probably open automatically (otherwise, double-click on the .sea file). Locate a Network Access.image file inside the resulting Network Access folder.
    Now, try Disk Copy 4.2 under Mac OS 9.2. Do not double-click on the image file. Instead, launch the Disk Copy (4.2) program. Choose to Load Image File, and select and open the Network Access.image. Then, click on the Make A Copy button. It may or may not be possible to create a floppy this way through a USB drive.
    If Disk Copy 4.2 does not work, try Disk Copy 6.3.3 (Mount Image under the Image menu) with the Network Access.image file. The mounted image will be called Network Access. Insert a floppy in the USB drive before you choose Make a Floppy from the Utilities menu in Disk Copy 6.3.3.
    If the above does not work, again mount the Network Access.image file using Disk Copy 6.3.3. Open the mounted image (Network Access). Inside is a System Folder. Open this System Folder and remove all files from the three folders Apple Menu Items, Control Panels and Extensions (throw them into the Wastebasket/Trash, do not forget to empty the Wastebasket/Trash). The size of the System Folder is now somewhat smaller. Try to drag-copy the System Folder onto an empty (freshly Mac-formatted) 1.44 MB floppy disk in the USB drive. This may or may not work.
    Otherwise, you may want to test the Mac OS X dd procedure (the LowEndMac article).
    Alternatively, you may want to use an old Windows PC with a built-in floppy drive (and Aladdin/StuffIt Expander and WinImage).
    Jan

  • Putting pictures on System 7.1 with floppy disk created on Windows PC

    Hi all, I have a Quadra 605 on system 7.1 that I've been experimenting with, would like to get some pictures transferred onto it. I tryed using apple file exchange which is on the Quadra to read a Windows DOS formatted disk with some pictures on it. I was able to copy the files from the disk to the hard drive on the Quadra using file exchange, but when I click on the icon to try to open the picture, I get a message that it can not be opened because the application program that created it can not be found. Is there something else I need to install on the Quadra to open a JPEG image or is there another way to go about doing this? I will not be able to connect the quadra to the internet, all I have is the floppy disk drive, there is no USB port either. Also, I have an iMac on system 9.2 that I copied some pictures to a floppy using the external floppy drive on the iMac. It would open the disk on the Quadra without using file exchange, but it wouldnt open the icons either - I would get the same message that the application program that created it can not be found. Anyhow, I have the iMac on system 9.2 that I can use as well if need to be.

    An appropriate 68k version of the shareware program GraphicConverter could  be one possibility.
    http://www.lemkesoft.com/content/207/download-old-versions.html
    An older web browser could be another. Try to open the file from within the application (via the Open dialogue); do not just double-click on it.
    However, if not already available, one problem would be to transfer a program to the Quadra 605 if the file size is over 1.4 MB.
    Some compression utilities can segment larger files for transfers on multiple floppies, but that would require compatibility on both sides.
    Another way could be to use a null-modem cable between a DB-9M serial port of a Windows PC and the MiniDIN-8F Modem Port of the Quadra. The null-modem link can be created by connecting a PC-style DB-9F to DB-25F null-modem cable together with a normal Macintosh DB-25M to MiniDIN-8M hardware handshake modem cable. Normal communications software can be used on both computers (for example, the communications section of ClarisWorks on the Mac, and HyperTerminal on the PC). Do keep a Mac program file downloaded onto a PC in its encoded/compressed state (that is, hqx, bin or sit) until on a Macintosh computer.
    Jan

  • External floppy disk drive

    I have an HP F1059C External Floppy Disk Drive by TEAC that came with a (really) old HP laptop. I have some old research saved to floppy disks I need to access.  Is there a cable that will convert my External drive to a USP port on my present  HP laptop with Windows 8?  Do  I need a new driver?
    Thanks 
    Oxford Designer

     Thank you Dean Huffy. Yes, I recall it was an omnibook.  I loved the compactness of the thing.  And it had enough heft one could throw it like a brick at someone's head if they made fun of it.   Your advice alone is worth the $30 and elegant in its simplicty. 
    If you have the patience, I would add another permutation to my situation.   After the Omnibook's monitor went dark the files were tranferred via it's floppy drive to its desktop successor, for which I ordered a redundant floppy drive for that purpose.  There it rested, with some updates, but unbidden for the past five years until the desktop crashed and I replaced it with the present laptop.  I took the two units to my local computer repair person who neatly transferred most if not all the contents of the former to the latter, EXCEPT THAT, when I try to open the one, much coveted file, I get a message "cannot convert password protected documents".  Okay, so had so much regard for the file I put a password on it, but I can't even get to a point where I can enter a password; and following the Windows advice to "Open and Repair" seems to have no impact.  
    The bottom line is, I am most grateful for your advice on how to recover the file as of 2001 from an old back-up floppy , but would be even more grateful if I can recover the file through its 2009 updates now on my harddrive (and perhaps a back-up CD.)
    Thank you, again.
    Hank

  • Damaged Floppy disk

    My floppy disk is completely corrupted. I donloaded badcopy pro v 3.75 and it gave me the files on it. The only problem is, it won't recover it unless i purchase the program. Does anyone n\know where I can find the serial code for the program. I really need it badly. I would purchase te program but i rarely use floppy disk. Please help me.

    My floppy disk is completely corrupted. I donloaded
    badcopy pro v 3.75 and it gave me the files on it. The
    only problem is, it won't recover it unless i purchase
    the program. Does anyone n\know where I can find the
    serial code for the program. Yes. The company that made Badcopy Pro certainly can provide one for you.
    I really need it badly. I
    would purchase te program but i rarely use floppy
    disk. Tough luck.
    Please help me.No. Jerk.

  • Floppy Disk Drive for Mavericks

    Hello
    Does anyone know of an FDD for a mavericks mac? I would like to create boot disks for an old mac. Is this a good method to consider? I am not sure how else to go about this. If there is an alternative, whatever it might be, please let me know.
    I apologise for posting here but this relates to older machines in a way.
    Thanks in advance.

    The original system for a PowerBook 2400c/180 was 7.6.1. Other supported systems (according to Apple's technical specifications) were 8, 8.1, 8.5, 8.6 and 9. You would need to purchase an appropriate Apple system CD. Ensure that it is a retail disc (for all models), not a disc for a certain (other) machine.
    You can use one of the Apple CD-ROM drives above, providing that you have the proper HDI-30 cable. See the manual for details about connecting SCSI devices and about booting from a CD.
    If necessary, and if the already installed operating system is working (and you can navigate the Japanese menus), you should at least be able to create a Disk Tools PPC floppy on the PowerBook. Use the Disk Copy 6.3.3 program (the Make a Floppy command under the Utilities menu) for this. I assume that you have the external floppy disk drive for the PowerBook.
    www.info.apple.com/support/oldersoftwarelist.html
    http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English -North_American/Macintosh/System/Mac_OS_8.1_Update/Disk_Tools_PPC.img.bin
    http://download.info.apple.com/Apple_Support_Area/Apple_Software_Updates/English -North_American/Macintosh/Utilities/Disk_Copy/Disk_Copy_6.3.3.smi.bin
    One may also want to try to modify a Disk Tools PPC to hold CD-ROM software, thus allowing a CD to be read when the computer is running from the floppy disk system.
    Additionally, since the computer in question has PC Card slots, an inexpensive PC Card adapter for CompactFlash and a CompactFlash memory card can be very useful for file transfers. In certain PowerBook models, such a CompactFlash card (reformatted to Mac) can even act as a startup disk (if it has an appropriate system folder).
    Jan

  • Transferring files from old PC floppy disks

    I have a collection of old floppies from a PC. Although I know I won't want most of the info on them, there are treatments for various ideas I'd really like to get hold of.
    I've asked in the Apple shop, they said they couldn't think of a way.
    My only thought was to try to get hold of an old PC with both floppy and CD drives & copy documents that way. Then I assume I'd have to install Parallels to make them readable.
    Anyone have any better ideas?
    Thanks
    Macula

    1.44 floppy are readily available in USB form for about $20. A shareware program called "copyQM" is possibly still available that can transpose any 5 1/4 floppy to the 720/1.44 format. You will need minimum a real PC loaded with DOS 3.0 or higher, 5 1/4 floppy and 3.5 (1.44) floppy. It will also make images of the floppy disks as well. You could load those on cd's of course.
    If interested contact Sydex to see if they still supply the program:
    http://www.sydex.com/

  • How to boot a desktop-PC into RT directly from harddisk (without floppy disk)

    Hello,
    we are using a normal desktop-PC as LabVIEW real-time target (ETS).
    Unfortunately, we always have to use the floppy boot disk (created with MAX) in order to boot this RT-system.
    Once we had a National Instruments PXI real-time system and there was no need for that boot disk to start the system.
    So, why do we have to boot the desktop-PC from a floppy disk instead of booting directly from harddisk?
    Or is there a possibility to boot the desktop system without floppy disk, just like the PXI-system?
    Tom S.

    Hi Daniel,
    thank you for your reply.
    I just checked again if I can boot the RT-system without the floppy disk, from harddisk only - but that doesn't work ("DISK BOOT FAILURE, INSERT SYSTEM DISK...").
    Of course, the boot order in BIOS is set up appropriately to allow booting from harddisk.
    And also, the complete software package was already installed on harddisk via MAX through the previously configured network connection.
    Actually, it seems there is no boot loader installed on harddisk at RT-systems for desktop-PC's.
    The boot loader has to be launched from the floppy boot disk and afterwards, the further boot program is loaded from hard disk.
    Is there anyone who can boot a desktop-PC into RT without the floppy disk? And what do I have to set up in order to make it work for our system?
    Thanks,
    Tom S.

  • Copying pictures to a floppy disk... how to ??

    I have many pictures in Adobe Photo album. My computer is running out of space and I have a zip file that I can down load them to.. BUT I can't seem to locate where I do that at.

    Hi Debra,
    All the pictures which are shown in Album are saved somewhere in your Hard Drive. To find the location of those files in your Hard Drive select the image in Album and see its properties(Alt+Enter).The properties show the location of the files in your drive.Click on the folder in the properties pane to go to that location. You can copy those pictures from the Hard Drive to floppy disk. In the full version of Album there is the Export menu which lets you export the files directly from the application but in Starter Edition the only option is do it from the folder location.
    Hope this helps.
    Thanks,
    Smriti

  • External floppy disk drives for the new iMac?

    I'm trying to move a whole slew of files I created on a Macintosh from a longtime back--the original Mac--and they are all saved on floppy disks. I recently bought a Sony MPF88E not knowing it didn't work with the new Leopard OS. Are there any external floppy drives out there that do work with the new OS?

    Hello and Welcome to Apple Discussions. 
    I just dug out my +TEAC FD-05PUB+ (which I originally bought for an iMac DV running OS 9.0.4!). It works fine* on my Aluminium Intel iMac 2.8GHz.
    I'm not sure why the Sony wouldn't work. Does it appear in System Profiler and/or Disk Utility?
    mrtotes
    * by fine, I mean normal, but I'd forgotten how bad floppy disks are...

  • How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first

    Please help!!
    How many times can you install Lightroom 5? My problem is that I have saved my programs on C. To I have more space, I want to save my programs now on E. Can I now uninstall Lightroom and reinstall from C to E? Can I use the same license code as the first installation?

    Thank you for your answers, it helps me a lot.
    But sorry for my ignorance. I understand how you mean it, but I don't know how to do it. I'm scared to lose the settings/edits of the images.

  • After writing an html report on a floppy disk and removing it, labview shows an error message window: disk not present

    after writing an html report on a floppy disk and removing it, labview shows an error message window: disk not present.
    My pc is based on asus motherboard. Labview 7 and Windows 2000 sp4 installed.
    The error message continue also if i stop the application that generated report on a: .
    I've got this problem only on a pc: on other machines i don't have this problem (Labview only continues to access floppy but it doesn't show any window).
    Find below an example: first press the button to create a report on a: then remove the floppy, after 30-35 sec i've got the error message
    Attachments:
    prova.vi ‏55 KB

    Hi,
    I tried your vi: I don't get any error message after removing the disk but LV7 keeps on accessing the drive at regular intervals even if you stop the vi and close it!!! This is not supposed to happen.
    The only way to stop it is exit LV7.
    If you don't use the file dialog and you wire a full path, you don't get any problem.
    I also created a very simple vi that conditionally writes a text file on a: and I got the same behaviour.
    This problem occurs only with LV7, I tried the same examples in LV6.1 and everything was fine.
    If anybody wants to try I attach this simple example,
    Alberto
    Attachments:
    salva_testo1.vi ‏22 KB

  • Is there a way to view old floppy disks running Maverick?

    Is there a way to view old floppy disks when running Maverick?

    While there are older usb external floppy drives available I seriously doubt there are any current drivers to support them. If it is the floppy's content you want then an older pre Intel Power PC capable of running Classic environment (or mac OS9) could utilize the external floppy drive. Also consideration has to be given to the capacity of the floppies as 400k and 800k are not read by most of the later drives which would include the usb ones.

Maybe you are looking for

  • Clearing sequences, running sql script

    Hi, I'm using OWB 10.1.0.4.0 and I use a sequence to create a surrogate key in my tables. For the tabels that are deleted during the proces I want these sequences set to 1 again. Is there a possibility to run a sql script in a mapping or in the proce

  • BB 8100 pearl no service

    My BB was purchased from a cell phone store through ebay.  I received  it 3-4 months ago unlocked, and put my SIM card in it and it worked perfectly fine. Just the other day however, it stopped working and says "no service" when in manual/automatic m

  • Hdiutil in Terminal.

    Hi I'm trying to create a USB stick with Ubuntu Netbook remix on. I've found the instructions at https://help.ubuntu.com/community/Installation/FromUSBStick Under the Mac section it says at point 2 to use hdiutil to convert the file. I've said that t

  • Catch the inbound delivery number when VL31n is saved.

    Hello Friends, In order to get inbound delivery when VL31N is saved, i am using the BADI : DELIVERY_PUBLISH ...this is having 2 methods. 1.PUBLISH_BEFORE_COMMIT ( having import parameter it_changed_data...this structure is having inbound delivery num

  • What are the 'sim lock' laws? Seriously.

    I really can't find any up-to-date info on the sim lock laws or if there are any. Supposedly late last year there was a law put into place where service providers are required to give you the unlock code if requested. AT&T did this for me without hes