Wrongly deleted files

I have wrongly deleted some files, no longer in trash, and now have no dock and cannot turn computer off from the finder button. i aslo have no idea what the files were that got deleted, have restarted in safe mode, done a fsck and have no idea now what to do

Hi Ben! And Welcome To discussions!
Did you purchase the iMac new, in the box?
Was it running Panther 10.3.x, when it was new, or did you upgrade, from an earlier version of OS?
Do you have the original installation disks that were shipped with it?
If you upgraded, do you have the Full Retail Version, of the Panther Install CDs?
You have another topic started loss of dock and finder functions, concerning the same issue.
It isn't necessary to start multiple threads, and is less confusing to those trying to assist you, if you don't.
ali b

Similar Messages

  • How to recover Deleted file from HARD DISK

    By mistake my entire AVCHD file of 90 Mts  duration was deleted from my Hard Disk, this  I realised after a week., in the meantime I have not added or deleted any file from this hard Disk. I had given my this hard disk to my service engineer to recover the video., he has tried and recover some 40 mb file., but I cant open this recovered video file in Premiere or any other video convertor programme., also I cant get any information about Video.
    Can anybody in the forum help me and suggest how to recover my deleted Video from the Hard disk

    Hi, hard disk data loss is actually a hard task for many users 'cause most of them think this kind of problems is a complicated situation. Here are some tips you need to know after data loss happened.
    1. If you meet the file loss situation, keep calm and stop using your computer to do any read or write operation until you find the way to recover the lost files because any wrong operation.
    2. If you've lost a file, time is of the essence. As new files saved to Mac hard drive or storage devices, the original files gets overwritten. So do not use the drive or disk which your deleted files are stored before at all, until you have completed the scanning and recovery process.
    3. The system crashed or the files loss situation happens occasionally, so remember build a backup for the files periodically is strongly needed.
    4. If you meet the file loss situation again, stop using the Mac or storage device right now, use another computer to process the files recovery.
    5. Remember this, no matter at the normal time or after files recovery, build a backup for the files periodically is the best method to protect your files from data loss situation.
    This post offers you more tips you may need: http://www.uflysoft.com/data-recovery-mac/mac-files-recovery.html

  • Deleting files out of system preferences desktop background.

    Does anyone know how to delete files out of system preferences>desktop & screen saver?
    Some how when adding one photo to the file for the desktop background it took the entire photo file. So that instead of one photo for the file it has over 200 now. Read everything and tried everything. Still can't figure out how to delete that file from the list.
    I know how to add photos or whatever to use as desktop background just no idea how to remove them from the list.
    Any ideas?

    Doug,
    When you go to system preferences>desktop & screen savers>desktop. On the left is a window with the names of the images listed. Apple Images, Nature file, Plants file, Picture Folder, Choose Folder and so forth. The ones that come with Apple products. Not sure what all else is native to Apple.
    Iv been using my own desktop background since the day I got the iBook. Normally I just get one photo or image and more it there to use. But, last week I did something different or wrong. Maybe holding a button to long, not sure. Instead of moving the one photo it moved the entire photo file. That file had over 200 (2,500x1,800 in size & over 550KB for each) and probably closer to 250 photos in it.
    Way to many to be there. And I simply can't find a way to remove that file from the desktop list. I can high light it, but it doesn't delete with the delete button. I can high light it, but it doesn't change anything in system preferences banner to edit, view, etc....to remove it either. It won't click & drag to trash.
    Being very careful because I don't want to delete the file and by error delete it totally off the computer. I could creat a new file with only 1 photo in it for use as the desktop background. Then try to choose that file. However, since the last big OS-X update it's been doing this. Everytime I choose a file or photo it's adding the entire file not just the 1 photo. And Iv managed to add 3 files so far to that list.
    Any ideas? Thx, Mike

  • If you delete files from your computer, BlackBerry Link deletes the file or collection from your device?

    I found the below description from the help of BlackBerry Link, however i never get it work.
    Any one know whats wrong or what i need to set?
    About deleting music, pictures, videos, and documents?
    After you sync your music, picture, video, or document files between your computer and your BlackBerrydevice, if you delete a file or a collection of files, the following actions occur:
    If you delete files from your computer, BlackBerry Link deletes the file or collection from your device.
    If you delete files from your device, BlackBerry Link doesn't delete the file or collection from your computer.
    For information about how to delete a file from your device, tap the Help app on the home screen of your device.

    Hey hkfoolman,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Go into BlackBerry Link and click on the BlackBerry and then click on Options.  Make sure you have Music, Pictures, Videos and Documents checkmarked for synchronization.  Once these are checked, try to remove the files.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Can't delete files from external hard drive

    So here's an interesting problem that I've never run across. I have a Western Digital hard drive plugged in and I was deleting some files off it today when suddenly it started saying that there were some files in use and it couldn't delete those. I hit "Continue" which usually does the trick but it just deleted everything else and left a bunch of folders with these weird empty files in them. So I quit all programs and tried again. Same thing, "Cannot delete, file in use." Tried rebooting both my computer and the external, again "Files in use." Did a google search, followed numerous suggestions, terminal sudo rm -r +file name, a force delete app, secure delete, holding down the option button while deleting... No dice. When I try the sudo rm thing in terminal it tells me that the folder doesn't exist AND that it isn't empty and won't delete it. (I love computers) When I do a right click->Get info on it, it says that I have read-write permissions but that the files are locked but won't let me unlock them (I'm the system administrator). When I look at the files in finder, it says they're actually aliases. What's really weird is that the file names are all messed up and have asian characters and stuff in them. I didn't create these aliases or have files with those characters in them. Soooo... Any suggestions? Cause I've read the threads and tried just about everything. I'm concerned this drive is headed for a crash or maybe just needs to be wiped and then put my stuff back on cause it's gotten errors over time. I don't know, I've never had this happen before and I'm pretty good with computers. If it was a windows computer I'd be doing a scan disk and defrag on it but I don't know how to do that on a mac to an external hard drive. I honestly don't know if this is a hardware or software problem. Any help would be appreciated.

    Oh... well  this is interesting... disk utility is say that it IS formatted MS-DOS (FAT32). Is that what's causing these errors? This thing has been running with my mac beautifully for years. So do I pull my stuff off, wipe it and reformat it for a mac? Or since it is FAT 32 can I hook it up to a windows computer and fix the problem? Since I had the wrong format, I can delete the files but if I don't fix the format this will keep happening?
    Volume repair reported:
    Verify and Repair volume “750GBEXT”
    ** /dev/disk1s1
    ** Phase 1 - Preparing FAT
    ** Phase 2 - Checking Directories
    /.../SpryAssets/_NOTES has entries after end of directory
    Truncate? yes
    /..../My Work has entries after end of directory
    Truncate? yes
    ** Phase 3 - Checking for Orphan Clusters
    95906 files, 181003968 KiB free (5656374 clusters)
    ***** FILE SYSTEM WAS MODIFIED *****
    Volume repair complete.Updating boot support partitions for the volume as required.
    And thanks!

  • Can I delete files from my computer and still keep them on my iPod touch?

    I have researched this topic here as well as on Google and I am not really getting the answers I need. I am by no means an iTunes/iPod pro; my 3 year old recently showed me how to shut off my iPod (I hadn't realized before that it had anything other than a "sleep mode", if you will).
    I have read you need to set iTunes from autosync to manual, but this isn't working for me... iTunes still wants to delete/replace everything currently stored on my iPod, or will say it can't find the files on my iPod if I've already deleted them from my PC.
    I have Windows XP. I recently upgraded my iTunes software to 9.2.1.5, and I have an iPod touch 64GB.
    I really need to delete a lot of MP3s and videos (not purchased from iTunes) to clear up space on my home PC, but I'm afraid to do it because every time I end up having to replace the deleted files anyway whenever I sync the thing.
    I click on "manual" on the Summary page, I then click on "sync music" and "Sync Movies". On each of those pages I get a pop up, and if I don't click on music or movies previously added to my iPod, they get deleted. The "manual" option doesn't save itself as the default option either, I always have to recheck it every time I sync my iPod. Otherwise, it always goes back to the autosync mode.
    I would just like to add new files to my iPod, leave the stuff already stored on it, and delete the files off my computer. I don't know if I'm still doing it wrong, or if there's an iTunes glitch or what. Can someone please explain how to do this?

    Sounds like you have a few problems going on here. First one being, the itunes/ipod preference isn't getting saved for manually managing.
    Second one being, if you are intending to manually manage content on your ipod, hitting sync does just that - it puts the ipod "in sync" with the PC. If a file isn't on the PC, it gets erased from the ipod.
    My advice is to get an external hard drive, leave the ripped files from your CDs there so itunes always has access to them, and free up space on your PC's hard drive that way. An added benefit of having an exHD is, you can have backups copies of your purchased tracks, since you only get one download of them. If your PC dies, they will be on the exHD, or vice versa.

  • Problem with Read-only user being able to add and delete files and folders.

    The setup:
    Computer #1
    iMac (intel) running 10.5.5
    File sharing ON
    Sharing folder on external USB drive called 'iTunes' (but not the drive volume itself)
    Users:
    - Everyone = Read Only
    - Admin(me) = Read/write
    - UserA = Read Only (with account PW and username identical to local login for computer below)
    Computer #2
    UserA's iBook G4 running 10.4.11
    When I go to finder>network>iMac>connect it prompts me to login which I do and then select 'iTunes' folder which is visible and mounts successfully. I can see all files, access them all. Life seems great. Then I discover that I can also modify and delete files from the iBook, and create and delete directories.
    I'm new to networking and although I've setup and managed minimal networking tasks on PCs before, this is my first foray into the Mac networking world. Please help.
    What am I doing wrong? What haven't I set?
    Thanks in advance.

    Sorry, I should have clarified this in the first email.
    When I login from the iBook, I am logging in under a read-only user (not as myself, who is admin on the iMac). The user on the iBook has only been given read-only permissions on the iMac yet is able to add and delete files.
    This read-only login/PW however, is the admin account on the iBook, but that shouldn't allow this person to write on the iMac so far as I understand things...right?

  • Installed OS X Snow Leopard on external HDD, now won't allow me to delete files from Mac internal drive

    Hi,
    I am stuck!  My 1 TB iMac 27" decided to stop booting up and would only stay at the grey screen with the apple, gear turning and progress bar. When it got to a certain point on the progress bar it would shut down.  Thanks to so many helpful people and their experiences I was able to try many different things including (Command + S, typing /sbin/mount -uw / enter , chmod 775 / enter, logout enter, then rebooting holding down Command + V) and (Reinstalling OS X and using Disk Utility to repair - came up with Disk can't be fixed).
    Nothing worked until I read a couple of very wise answers who said "Your hard drive is not dead, but too full...keep at least 10% free at all times". I was down to about 1% (ooops!)  Thankfully hubby had bought me an external HDD for Christmas, onto which I installed OS X and being connected to my iMac, it recognized my internal Macintosh HD and all my files are there.  Phewww!  But I don't want to use my external HDD as my startup disk, I wan't to keep my Macintosh HD for startup but it is too full to repair and select as startup.
    My problem is that I cannot delete files from Macintosh HD, and I've tried to unlock files/folders but they don't seem to be locked.  But when I drag them to the trash can it says "The item ... can't be moved to the Trash because it can't be deleted."  Again, many helpful answers online, but nothing is working.  I have 2 Finder windows open, one with external HDD (new startup disk), and old HDD (Macintosh HD) but all items in Macintosh HD can't be altered or deleted (right click doesn't highlight to change the name).  So if I can't delete my files, I can't reinstall OS X and repair disk and select it as my startup disk.  I'd be so thrilled if someone can help me.  I have tried unlocking folders, and I downloaded 'Trashit'. Neither worked, so I figure because it has the little pencil crossed out on the menu bar that it is protected somehow...I just don't know how/what to do.  Thanks

    Ok, so I'll try set it out a bit clearer than my first post,
    This is what I've done, and the results:
    1. My son unplugged working iMac Mac OS X Snow Leopard 10.6.2, 1TB with only 11GB available space
    2. Turned it on and got the white screen, apple, turning gear and load-up bar
    3. Turned Mac off and waited 1/2 a minute.
    4. Turned Mac back on...(same as 3.), tried again many times
    5. Began searching internet for answers (see original post)
    6. Found answers and did the following:
                   1.     Put OS X installation disk into drive
                   2.     Attached External Hard Drive
                   3.     Installed OS X onto External Hard Drive (With a different name & password to original HDD)
                   4.     Found Macintosh HD still worked so tried to delete files only to get message saying                                           files couldn't be deleted (see original post)
    I've tried changing the permissions in 'Get Info' and this is what happens:
    1.Right click Macintosh HD - says "You can only read"
                                                      Name: System - Read & Write
                                                                 Admin -   Read & Write
                                                                 Everyone - Read only
    2.Click on padlock to unlock - doesn't turn black to be able to change anything
    3.Check the box "Ignore ownership on this volume" (someone else advised to do this)
    4.Name changes to 'mydrive (Me)'
    5.Lock padlock and Name still says mydrive (Me) but still 'You can only read'
    I don't know what is wrong or what to do, but perhaps you are right LowLuster, that because I named them different names it is protected in some way.
    My thought now is to copy all my files to the external HDD and then erase and install again on my internal HD, but I really need my calendar, emails etc from my old HD and not sure they can be found on the old HD to copy over.
    Still stuck!

  • I get error message when trying to delete files on Macbook Pro.

    I am trying to delete files on my Macbook Pro, Mac OS X Version 10.6.8 -  I get this message: "The operation can’t  be completed because an unexpected error occurred (error code -50) "  This is a folder.  Under Finder/Get Info I have unlocked the padlock in lower right corner, and the padlock box is not checked.
    Please HELP!

    You should always backup your iPad before ever doing anything major that coould result in a catastrophic loss is something goes wrong. You can then usually restore from the backup when your iPad has recovered.
    You should also be sure to have transfered any new purchases directly to your iPad to the iTunes app on your computer on a regular basis.

  • Deleted Files NOT deleted??

    I copy music to and from my N9 (from Mac OSx 10.7 Lion) using the phone as a Mass Storage Device.
    Recently I deleted a folder from my N9 Music folder.
    The folder was the Artist, inside that was the Album and inside that was two MP3 music files.
    The music has gone but the album and album art remain remain in the Music Player. If you click on them it comes back with the (quite logical) error that the music files can't be found.
    How do I delete the album art?
    Connecting the phone to the Mac, it says that there are no items in the Trash and if I search the music folder, the files can't be found.; as expected.
    But the album art is still there.
    I have the QAD File Manager app and have searched the Trashes and Cache on my phone (and the pictures folder) but can't find the album art to delete it.
    Any ideas where it might be hiding?

    I use toolbox and cron to rune a manual purge pass on the server once a
    week.
    A line in crontab:
    00 02 * * 0 purge sys: -a -d=35
    will purge volume sys every sunday at 2:00 and purge all files deleted 35
    and more days before.
    Klaus
    "Montero" <[email protected]> wrote in message
    news:[email protected] ups.com...
    > Thanks for your input Massino, I guess I should refrase the question:
    > Does anyone know HOW to delay the purging of deleted files on an NSS
    > volume? If i'm going about it the wrong way, can you tell me how it can
    > be done? Thank you.
    >
    > Sam
    >
    > Massimo Rosen wrote:
    >> Hi,
    >>
    >> [email protected] wrote:
    >> >
    >> > Does anyone know how to set the "Delay Purge" for deleted files on an
    >> > NSS volume,
    >>
    >> Such a thing doesn't exist.
    >>
    >> CU,
    >> --
    >> Massimo Rosen
    >> Novell Support Connection Sysop
    >> No emails please!
    >> http://www.cfc-it.de
    >

  • !!! Statements of Logic Deleting Files and messing with System are True !!!

    This morning I answered some guys post about Logic deleting everything in the same level as the project folder under certain circumstances. I Tried trouble shooting for him but could not recreate it.
    Then this happened to me today:
    When working in Logic 8 in Leopard all of a sudden it stopped communicating with my Unitor8 via USB. I restarted but the Unitor 8 Which I reset twice would NOT communicate with L8 anymore. It would remain in patch mode (red light lit though CPU is running)
    I've had this erratic behavior many times since the past years on many computers so it wasn't really new. All one needs to do is reinstall the Unitor Family driver.
    So I decided to do so:
    I inserted my Logic Studio DVD and opened the installer and checked ONLY the Unitor family Drivers. After completed install I restarted the Mac. Everything went fine. So I booted L8. While booting I saw my hardrives on the right side of the desktop flash once. I thought that to be strange and took closer look.
    Now my boot drive was missing from all the drives on the desktop and in the sidebar window...
    I tried to Apple+Click on a Application in the dock. The finder opened the applications folder and showed me the app I had clicked on. But I could not navigate to the root of my System Drive even via the "path" sysmbol in the toolbar. So I hit shiftappleg and entered /Volumes/MySystemVolume - it showed my volume "Grayed Out" in the finder window...
    I tried repairing the disk and permissions but nothing was wrong with my boot drive apparently besides the fact that the finder (and all other applications when wanting to open or save) could not "see" my system drive... I could launch all the apps normally that were residing on the SystemDrive in the AppFolder... So this kept getting weirder...
    So I opened my favorite application Tinkertool System and went to the Tab Files and chose the underlying tab "Attributes" which shows me Macintosh HFS and Finder Attributes... I pulled my SystemDrive onto the Drop Area and discovered something VERY amazing: The Display in Finder option had mysteriously been altered to "INVISIBLE"
    I changed it to Visible and there it was - My System Drive... Showing up in the finder...
    I made a restart to make sure everything was OK....
    After the restart the following settings had VANISHED:
    1) Pixadex = ALL ICONS (I had 230 MB) of sorted icons stored in my Application Support Folder
    2) All my Safari Book marks were gone - They were still in ~/Library/Safari - but the Bookmarks.plist was UNREADABLE even with a text editor and XML editor
    3) Numerous other applications had LOST their authorization preferences so I had to re-authorize many of my Audio Unit plug-ins...
    4) My Dock had been reset
    5) My Monitor arrangement had been reset...
    6) My date and time had been reset
    7) My energy settings had been reset.... (I had NOT zapped the P-RAM)
    Since installing Leopard 2 weeks ago - I have CAREFULLY monitored ANY activity after INSTALLING anything in order to be able to troubleshoot - and this problem definitely occurred right after installing the USB Family Drivers and launching L8....
    There was really NO HARM done other than the sweating that I did troubleshooting but if L8 is capable of doing what happened to this other guy loosing his whole folder and now doing this to me - where are the limits? When is someone going to get REAL hurt.
    Please Apple - I am sending you this post as a BUG report as well - could you PLEASE look into this as there has to be some kind of VERY dangerous MALFUNCTION within Logic or its Installers.

    Wow, I was just joking with the medication thing. I didn't actually think it was seriously a mental health issue. Sorry.
    In any case, though, if he has full access to the Mac, mental health issues or no, there's not a whole lot to do about it. If it is possible to take away administrative privileges without causing a huge fuss, then you can limit his access to certain things. However, you can't mess with privileges on a Time Machine backup (doing so breaks it), and that means he's going to have access to at least parts of the backup. Which means he can trash at least some of the backup data, and if he deletes files from the TM backup using the Finder, he'll have essentially trashed the whole backup. He might as well have the ability to delete all the files on the machine if he has the power to delete backups.
    Honestly, in this situation, he should either only be allowed to use an account with Parental Controls on, which may not be an option (I don't know how offended he would be at such a suggestion), or he should be using a different computer entirely and have no access at all to his wife's computer. Alternately, have his wife keep a backup that is hidden - ie, connect the backup drive periodically and then remove it and hide it so he can't mess with it. That will at least secure the backup.

  • Deleting files from iDisk

    I've successfully uploaded a web site using iWeb, but now I would like to delete a couple of Web Galleries from iDisk. From the Finder I go to GO>my iDisk, but the spinning wheel spins and spins, nothing happens. I left it connected all night. Still nothing. How can I delete files, or what am I doing wrong to access iDisk.

    Many thanks. It worked like a charm. The reboot gave me the iDisk in no time and I was able to take off a couple of photo galleries, plus I went to Aperture and deleted a gallery and it immediately published the deletion to iDisk. I'm starting to get the hang of this. Thanks again.

  • Cover Flow view is out-of-sync after deleting files

    If you move a file to the trash while in Cover Flow, the file's contents are still displayed but the file is gone. Then as you use the arrow keys to move up and down, the file names continue to be out of sync with the content that's being displayed.
    The only way to sync them back up again is to change views or flip to another folder and flip back.
    If you continue to delete files based on the content you're looking at, you'll end up deleting the wrong files.

    I tried watching them in the timeline and viewer, all out of sync. No external monitor. I did get a message once about dropped frames and something else, it said I might have these issues, but it didn't tell me to change settings, just told me it was gonna happen, lol. So, I don't know where to start to fix it.

  • Deleted files not clearing space on my hard drive

    I'm running iMovieHD v6.0.3 on an old PowerPC G5. Things have always run smoothly until now. When I started editing my most recent video, I had 191GB left on a 500GB hard drive. Whenever I deleted any clips, my trash file size went immediately to 6.73GB - 191GB Available. I edited this movie down from 45 minutes to 13 minutes and the same amount of space showed up in my trash (6.73GB) and hard drive (191GB left) as when the project began.
    I thought I may just have a single corrupt/buggy session, but this is happening now in a newer iMovie session. Command+i on my hard drive still says it has 191GB of free space - after deleting almost one hour of video. All trash is empty and the deleted files seem to be gone. What is wrong?
    BTW - I'm new here and not the biggest techie around, so please type slowly. Thanks.
    Kevin

    If any part of your edited clip remains in your iMovie project, then the discarded part also will remain, whether or not you empty the trash. As Bengt points out, this is non-destructive editing. If you discard the entire clip, so that no part of it remains in the project, then emptying the trash will free up space.
    A workaround is to export to your desktop the retained portion of the edited clip to Quicktime movie, and then import the resulting Quicktime movie back into your iMovie project. That creates a new clip. You can then delete the retained portion of the old clip, and when you empty the trash it will be deleted along with the edited parts that you previously removed, and space will be freed up. You also can wait until your iMovie project is completed, then send the whole project to Quicktime and import back in. Then when you empty the trash you will free up space. Further editing will be somewhat limited, however.
    Note: Whenever you permanently delete a clip, be sure that you have a back up copy somewhere on your drive if you think you might want to re-edit it or reference it in some way.

  • Wrong CAP file version error message

    I'm trying to write a loader application that will send a CAP file into JavaCard, and then install it automatically.
    I have developed my JavaCard Applet by using Eclipse3.1.0 and JCOP30.
    After running my JavaCard Applet by Eclipse, I got its CAP file in folder [b\bin\FVSCardPkg\javacard\[/b]
    But when I run my loader application with this CAP file, the error message will display:
    EX: msg Wrong CAP file version, class class com.ibm.jc.JCException
    Wrong CAP file version
         at com.ibm.jc.CapFile.parseHeader(Unknown Source)
         at com.ibm.jc.CapFile.readCapFile(Unknown Source)
         at com.ibm.jc.CapFile.<init>(Unknown Source)
         at LoaderPkg.loader.load(loader.java:35)
         at LoaderPkg.loader.main(loader.java:20)
    This is my loader application source code:
    import java.io.*;
    import com.ibm.jc.*;
    import com.ibm.jc.terminal.*;
    *  Sample /**
    *  Sample loader. Demonstrates how to use the offcard API to download
    *  a cap-file on a JCOP41V22 Engineering sample card and listing of applets loaded will
    * follow.
    public class loader{
         private final static String termName = "pcsc:4"; // Real card
    //     private final static String termName = "Remote"; // Simulator
         protected static final byte[] JCOP_CARD_MANAGER_AID = { (byte) 0xa0, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00};
         protected static final byte defaultInstallParam[] = { -55, 0 };
         static String[] capFileName={"D:/MyCardPkg.cap"};
         public static void main(String[] args){
              try{
                   loader l = new loader();
                   l.load();
              }catch(Exception e){
                   System.err.println("EX: msg " + e.getMessage() + ", class " + e.getClass());
                   e.printStackTrace(System.err);
              System.exit(0);
              //Likewise for simulation, be patient the port takes time to close.
              //Use command line "netstate" to check the disapperance of the port before
              // activating JCShell command to read the simulated card.
         private loader(){}
         private void load() throws Exception{
              CapFile capFile = new CapFile(capFileName[0], null);
              System.out.println("Package name: " + capFile.pkg);
              byte[][] applets = capFile.aids;
              if ((applets == null) || (applets.length == 0)){
                   throw new RuntimeException("no applets in cap file");
              // Get connection to terminal, take note that jcop.exe is required to be activated
              // in simulation mode.
              System.out.println("Open terminal ...");
              //Make sure that the simulator jcop.exe is activated before unmarking this satement
              //Remember to delete the downloaded applet before running otherwise error is
              //expected if the simulator finds the existence of the applet with the
              //same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt. Be patient that the port takes time to close. Use command line
              //"netstate" to check the disapperance of the port before running.
              // pcsc:4=Card Terminal  Or  Remote=LocalHost Terminal
              JCTerminal term = JCTerminal.getInstance(termName, null);
              //For real JCOP41V22 card, please unmark this statement and delete the downloaded
              //applet before running. Error expected if the card finds the existence of the applet
              //with the same pakage name ID and AID
              //Issue /close command at "cm" prompt if the card is in use,, ie it should
              //have "-" prompt.
              term.open();
              // Add in this statement for real card which requires some response time
              term.waitForCard(5000);
              // Create a logging terminal spitting out the APDUs on standard out
              TraceJCTerminal _term = new TraceJCTerminal();
              _term.setLog(new PrintWriter(System.out));
              _term.init(term);
              term = _term;
              // Get JavaCard representative, passing NULL resets card and returns ATR
              System.out.println("Get card ...");
              JCard card = new JCard(term, null, 2000);
              // Get the off-card representative for the card manager and use it to
              // select the on-card CardManager
              System.out.println("Select card manager ...");
              CardManager cardManager = new CardManager(card, CardManager.daid);
              cardManager.select();
              // For downloading something, we have to be authenticated to card manager.
              // For this, the keys must be set. The keys to use should of course
              // be configurable as well.
              byte[] dfltKey = c2b("404142434445464748494a4b4c4d4e4f");
              cardManager.setKey(new OPKey(255, 1, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 2, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(255, 3, OPKey.DES_ECB, dfltKey));
              cardManager.setKey(new OPKey(1, 1, OPKey.DES_ECB, c2b("707172737475767778797a7b7c7d7e7f")));
              cardManager.setKey(new OPKey(1, 2, OPKey.DES_ECB, c2b("606162636465666768696a6b6c6d6e6f")));
              cardManager.setKey(new OPKey(1, 3, OPKey.DES_ECB, c2b("505152535455565758595a5b5c5d5e5f")));
              System.out.println("init Update ...");
              cardManager.initializeUpdate(255,0);
              System.out.println("Authenticate to card manager ...");
              cardManager.externalAuthenticate(OPApplet.APDU_CLR);
              // And load the cap-file, do not forget to call installForLoad
              System.out.println("Loading cap-file ...");
              byte[] cardManagerAid = cardManager.getAID();
              cardManager.installForLoad(capFile.pkgId,0, capFile.pkgId.length, cardManagerAid, 0, cardManagerAid.length, null, 0, null, 0, 0, null, 0);
              cardManager.load(capFile, null, CardManager.LOAD_ALL, null, cardManager.getMaxBlockLen());
              byte[] capaid = capFile.aids[0];
              System.out.println("Finished loading !");
              // Install applet, we try to install the first applet given in the
              // cap file, and try to instantiate it under the same AID as given for its
              // representation in the cap file. No installation data is passed.
              System.out.println("Installing applet ...");
              cardManager.installForInstallAndMakeSelectable(capFile.pkgId, 0, capFile.pkgId.length, capaid,0, capaid.length, capaid, 0, capaid.length, 0, defaultInstallParam, 0, defaultInstallParam.length, null, 0);
              System.out.println("Install succeeded!");
              // synchronize state with on-card card manager
              System.out.println("Update!");
              cardManager.update();
              // Print information regarding card manager, applets and packages on-card
              JCInfo info = JCInfo.INFO;
              System.out.println("\nCardManager AID : " + JCInfo.dataToString(cardManager.getAID()));
              System.out.println("CardManager state : " + info.toString("card.status", (byte) cardManager.getState()) + "\n");
              //Echountered error 6A 86 with this statement:Object[] app = cardManager.getApplets(CardManager.GET_APPLETS,
              //CardManager.CVM_FORMAT_HEX, true);
              //Solved the bug by playing the integers in arg0 and arg1.
              Object[] app = cardManager.getApplets(1, true);
              if (app == null) {
                   System.out.println("No applets installed on-card");
              } else {
                   System.out.println("Applets:");
                   for (int i = 0; i < app.length; i++) {
                        System.out.println(info.toString("applet.status", (byte) ((OPApplet) app).getState()) + " " + JCInfo.dataToString(((OPApplet) app[i]).getAID()));
              // List packages on card
              // Encountered error with this statement:Object[] lf = cardManager.getLoadFiles(CardManager.CVM_FORMAT_HEX, true);
              // Solved the bug by setting arg0 = 0,
              Object[] lf = cardManager.getLoadFiles(true);
              if (lf == null) {
                   System.out.println("No packages installed on-card");
              } else {
                   System.out.println("Packages:");
                   for (int i = 0; i < lf.length; i++) {
                        System.out.println(info.toString("loadfile.status", (byte)((LoadFile) lf[i]).getState()) + " " + JCInfo.dataToString(((LoadFile) lf[i]).getAID()));
              term.close();
         static String numbers = "0123456789abcdef";
         private byte[] c2b(String s) {
              if (s == null) return null;
              if (s.length() % 2 != 0) throw new RuntimeException("invalid length");
              byte[] result = new byte[s.length() / 2];
              for (int i = 0; i < s.length(); i += 2) {
                   int i1 = numbers.indexOf(s.charAt(i));
                   if (i1 == -1) throw new RuntimeException("invalid number");
                   int i2 = numbers.indexOf(s.charAt(i + 1));
                   if (i2 == -1) throw new RuntimeException("invalid number");
                   result[i / 2] = (byte) ((i1 << 4) | i2);
              return result;
    How to solve this problem?
    Thank you in advance.

    I'm not understanding if your cap file is in "b\bin\FVSCardPkg\javacard\", then why are you loading "D:/MyCardPkg.cap"?
    The issue isn't with your off card application, but the cap file version. Look at the cap file components in JCVM specification. I believe it's the Header component. The major, minor should match your card but not greater. In other words, your can't load a 2.2 on a 2.1 card, but a 2.1 can load on a 2.2

Maybe you are looking for