WTK 2.5.2 and cref from JCDK 2.2.2 communication problem.

Hello everybody
Just for own interest I was playing with the Java Card SDK 2.2.2 and WTK 2.5.2. But I am getting "Protocol mismatch error" as WTK runs on T=0 and cref runs on T=1. Does anybody have ever faced this problem and how to get rid of it?
Thanks in advance.
Shan!!!

Try to read my post again, please, I think you misunderstood those problem descriptions.
1. No package-list files - no javaddoc in eclipse 3.2.1. Just try it yourself and you'll see.
2. You didn't tried do you? The Manager.class is there, but Cipher.class is still missing. That doesn't break anything btw, it is just weird :)

Similar Messages

  • Can't connect to my iCloud account - not from my Mac's, not from my Phone and not from my iPad. Any known problems right now/Eric

    can't connect to my iCloud account - not from my Mac's, not from my Phone and not from my iPad. Worked earlier today, but not now. Any known problems right now/Eric

    Seems to be a major problem, according to MacRumours. Just have to wait, I guess...

  • HT1677 Safari when set to private browsing and cookies from sites I vist has a problem. I want it to keep cookies from sites I use such as my email and comic sites. Right now it does not retain cookies that set up my choices of comics as site internal fav

    Safari on the IPAD has the following problem.
    When set to private browsing and only accept cookies from sites I visit does not retain them after I shutdown Safari and then later restart it. I also found out that even if I leave it in background and close the cover of my case it will not retain the cookies even though I did not deactivate it.
    Things like email Ids and cookies that contain site specific favorites get deleted.
    Here is a site where you can set a series of favorites which get stored as cookies.
    http://www.seattlepi.com/comics-and-games/fun/Judge_Parker/
    Any Ideas... I have tried various settings but only public browseing keeps the cookies. I use private browsing to curtail popups and various trash from bothering me on my IPAD and Safari....

    Safari on the IPAD has the following problem.
    When set to private browsing and only accept cookies from sites I visit does not retain them after I shutdown Safari and then later restart it. I also found out that even if I leave it in background and close the cover of my case it will not retain the cookies even though I did not deactivate it.
    Things like email Ids and cookies that contain site specific favorites get deleted.
    Here is a site where you can set a series of favorites which get stored as cookies.
    http://www.seattlepi.com/comics-and-games/fun/Judge_Parker/
    Any Ideas... I have tried various settings but only public browseing keeps the cookies. I use private browsing to curtail popups and various trash from bothering me on my IPAD and Safari....

  • WTK and Java Card SDK 2.2.2 emulator( cref ) communication problem.

    Hello everybody
    Just for own interest I was playing with the Java Card SDK 2.2.2 and WTK 2.5.2. But I am getting "Protocol mismatch error" as WTK runs on T=0 and cref runs on T=1. Does anybody have ever faced this problem and how to get rid of it?
    Thanks in advance.
    Shan!!!

    [email protected] wrote:
    Hi friends,
    I am new to Java Card technologies, previously i worked in SCOSTA cards using java application. Now i want to develop java applet and mask into the javacard.
    I tried Java_card_kit-2.2.1 package to build cap file using sample class files based on the specification.
    In command prompt, i configured path and classpath perfectly....
    But when i tried to make cap file by using the following command i am getting error.
    set JC_HOME=C:\java_card_kit-2_2_1
    set JAVA_HOME=C:\j2sdk1.4.2_09
    SET PATH=%JC_HOME%\bin;%PATH%
    SET CLASSPATH=%JC_HOME%\lib\api21.jar;%CLASSPATH%
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes\com\sun\javacard\samples\HelloWorld 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.10I am getting the following error,
    error: invalid AID 1.0.
    Usage:  converter  <options>  package_name  package_aid  major_version.minor_versionSo kindly help me the best way to make cap file.
    regards,
    dhaya.You could try the following:
    converter.bat -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0You only need to specify the base directory for the classes and you need to specify the package separately.
    If you only want to convert to a JCA file you would use the following otherwise all 3 artifacts will be gernerated (CAP, JCA and EXP)
    converter.bat -out JCA -classdir %JC_HOME%\samples\classes com.sun.javacard.samples 0xF2:0x34:0x12:0x34:0x56:0x10:0x10:0x00 1.0I hope this helps.
    Shane

  • Java card simulator and WTK communication problem.

    Hi ,
    I am a newbie to java card .I am doing project on java card based sim.
    For that I am using JavaCard SDK 2.2.2 and WTK 2.5.2 .
    Now when i am trying to connect to cref(java card simulator) from java card midlet,I am getting protocol mismatch error.This is because of WTK runs on slot T=0 and cref runs on T=1.
    then i tried with jcdk3.0.1 classic edition.It provides cref configured to run on both slots T=0 and T=1.
    But when I tried to deploy jcrmi applet on cref running on T=0 i am getting the same error "Protocol mismatch error".
    Can anybody please tell, if there is any way to configure cref to run with T=0?
    Please reply ASAP, as i am stucked with the problem from more than a month.
    Thanks in advance,
    Saviy

    Thanks Anki for replying.
    I am trying to run RMISample from development kit.With steps given in guide as follows
    1.cref -o demoee
    2.Navigate to the
    JC_CLASSIC_HOME\samples\classic_applets\RMIPurse\applet
    directory.
    3.ant all
    it works fine but when i do it with following steps:
    1.cref -o -t0 demoee
    2.Navigate to the
    JC_CLASSIC_HOME\samples\classic_applets\RMIPurse\applet
    directory.
    3.ant all
    i am getting protocol mismatch error.

  • How do I install all my old programs and data from an old system folder after I have reinstalled the same OSX system after a crash?

    The system is OSX10.5.8 Leopard on a 2009 imac. A new system was installed from the installation disks and the original system saved to a folder.
    I need to use my Adobe programs, rescue my email, i-tunes and iphoto data.  The disk utility indicates that my Time Machine back-up disk is damaged and I don't want to take a risk of having Time Machine erase my hard drive and try to reinstall the exact system existing at the time of the crash.  There was over 650 gb of stored files that I was copying and removing from the drive at the time it crashed. The total size of the original system file is still about 650 Gb.
    I would prefer to go back in Time Machine and only rescue the programs as most of the files have been copied to external hard drives, but I can't access the back-up hard drive from the new version of the Time Machine.  Or by I don't want the Time Mchine to start copying the new operating system which would include all the data in the old system file. Time Machine was working fine at the time of the crash.

    No, the disk was backed up with time machine a few hours prior to the crash.  I was unable to open the computer when I tried to restart it- got a grey screen with the spinning disk- after a few minutes the screen would go black and would reboot continuously, but not load any images or programs. I started the computer from the 10.5.4 installation disks and checked both the time machine external hard drive and the Imac internal drive with the disk utilities. Both showed as damaged --the internal drive and permissions were repaired, but the external drive (time machine back-up)  was damaged and not repairable by disk utilities. I don't believe that the external drive for Time Machine was connected to the computer at the time of the crash as I was copying files to a different hard drive drive. And I was not having any problems with the TM back-up drive prior to the crash.
    I accessed the Imac internal disk by firewire (as a target disk) and copied as many data files as I had room for on my external hard drives available.  And I deleted quite a few files from the imac internal drive (mostly just jpegs, duplicate tifs, etc--nothing that was used by i-photos, i-tunes or the Mail program).
    Then I installed a new OSX10.5.4 system from the installation disk and the old system was moved to a folder on the hard drive.  I previousy had had the option to reinstall the complete system from Time Machine when I connected that drive and booted with the installation disks with the C key depressed.  But it didn't seem like a good option because I was unsure of the condition of that external disk and whether it would be able to reinstall my data correctly, once it had erased my internal hard drive. 
    I'm considering buying some new external hard drives and backing up the present system to time Machine (so I'll still have my old data in the old system folder).  And then I would try using the old Time Machine back-up to try to reinstall the sytem previous to the crash.  That back-up would reinstall about 700gb of data and operating software and programs which sounds like a lengthy back-up.  Since I have never used Time Machine to do a full reinstallation (I've only used it for individual files), I'm reluctant to do anything rash.
    I'm a professional designer (with a deadline) but I can still use my Illustrator and Photoshop by opening them from the old system folder and saving the files to an external drive.  So it's not neccessary to do anything hasty except to delete some of the excess art and document files that were causing the computer to run slowly and the  Adobe programs to crash when I tried to save my work. I have quite a few books on tape in the i-tumes folder which is probably talking up tons of space but I don't where the i-tunes files live.
    Thanks for any help. Peggy
    Message was edited by: peggy toole

  • Open and read from text file into a text box for Windows Store

    I wish to open and read from a text file into a text box in C# for the Windows Store using VS Express 2012 for Windows 8.
    Can anyone point me to sample code and tutorials specifically for Windows Store using C#.
    Is it possible to add a Text file in Windows Store. This option only seems to be available in Visual C#.
    Thanks
    Wendel

    This is a simple sample for Read/Load Text file from IsolateStorage and Read file from InstalledLocation (this folder only can be read)
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Windows.Storage;
    using System.IO;
    namespace TextFileDemo
    public class TextFileHelper
    async public static Task<bool> SaveTextFileToIsolateStorageAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    async public static Task<string> LoadTextFileFormIsolateStorageAsync(string filename)
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    async public static Task<string> LoadTextFileFormInstalledLocationAsync(string filename)
    StorageFolder local = Windows.ApplicationModel.Package.Current.InstalledLocation;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    show how to use it as below
    async private void Button_Click(object sender, RoutedEventArgs e)
    string txt =await TextFileHelper.LoadTextFileFormInstalledLocationAsync("TextFile1.txt");
    Debug.WriteLine(txt);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • I bought Aperature and PS from a university store, not under my apple username, now it won't let me update it to work with Yosemite because it isn't hooked to my username.  how do i fix it and get the upgrade

    A few years ago or so i bought Aperture and Photoshop (the whole kit and caboodle) from a university subsidized store (my husband worked there and buying programs like those two, the whole Microsoft office Suite, all kinds of things) at a very significant discount, i think we paid 25$ for Photoshop vs the 400$ it was selling for on the open market. 
    Yesterday i upgraded most of my laptops to Yosemite (one of them I'm sure was the one that had Aperture on it, a 17in MacBookPro, its about 2 years old now, but at the time i bought it it was the highest computer apple had on the regular floor, I'm sure i could have added some stuff to customize it for extra, but basically we are talking top of the line computer.  I recently just required a 2012 MackBook Air with also fairly heavy specs from a family member that was upgrading (I'm not sure why, i know they couldn't possibly be using this thing for anything beyond its capacity, its basically new,  and they aren't 3D animation rendering and needed a "quicker" one).
    I was very happy with the upgrade, and now it does work much more seamlessly with my iPads and my iPhone, but the whole reason i uploaded it was to work on pictures, adjust them, change the size and then print them out to include in jewelry, and Yosemite won't let me use Aperture at all, when i click to upgrade it (in the bar all it has basically old icon with a (no sign or ghost busters like sign over it) i click on it and it says, you did not buy this with your apple account name and i could not upgrade it.  But it just made me click ok, and did not give me any info on how to upgrade it.  i do physically own it, or my husband does, I'm not sure to whom it is registered, but sholdnt i still make it able to work with this new operating system, even if not through regular "software updates"  it used to always be asking me to upgrade "word" and i got that in the same way, so what is the issue and what do i do to get it to work on this new system?

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • 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.

  • Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it?

    Can i edit my game center account to stop sharing friends and games from another apple id that associated with my own new apple id.how to reset it without losing my apple id and i can stiil use it? Because i've made lot of paid purchases using this apple id. In my game center account i have so many games data that i'd never installed.i wanna  stop sharing  friends and games with this xxx apple id in my old ipad version ios 4.2. and i can still keep using this apple id in my new ipad 3rd gen version ios 6 without sharing game and friends with this xxx apple id? and how to remove the games data that i never downloaded in my ipad but still registered at my game center account.i wanna keep using this apple id coz so many fav application i've purchased from this id. the answer as soon as possible if there is some one can help me to solve it.thank u for reading my question and very big thanks for anyone who  can give me a helpful answer.                 

    Why do you ask in the iWeb forum?

  • I use my ipod for audible books downloads. In the past I have been able to move books back and forth from library to ipod according to what I was listening to.  I can no longer retreive books in the library. Any suggestions?

    I use  my 6th generation Ipod strictly for Audible downloads.  In the past, I have been able to move titles back and forth from the Ipod and my Itunes library, to control the amount books on the ipod. Recently, an exclamation mark has appeared next to the titles as I try to transfer to the ipod, and the book does not transfer.  Any suggestions on how to regain access to my purchased library? 

    1. You did not get an error message telling you that your iPhoto library was getting full. You got a message telling you that your HD was getting full, right?
    OS X needs about 10 gigs of hard drive space for normal OS operations - things like virtual memory, temporary files and so on.
    Without this space your Mac will slow down as the OS hunts for space on the disk, files will be fragmented, also slowing things down, apps will crash and the risk of data corruption - that is damage to your files, photos, music - increases exponentially.
    Your first priority is to make more space on that HD. Nothing else can be done until you do.
    Purchase an external HD and move your Photos and Music to it. Both iPhoto and iTunes can run perfectly well with the Library on an external disk.
    Your Library has been damaged from being run on an overfull disk.
    How much free space on it now?

  • HT3669 I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    I have an HP deskjet color printer that only prints in black and white from my mac ... how do I get it to print in color

    Check the printer itself.  Some printers you need to set the color & B&W settings on the printer itself instead of the Mac.   If that is not the case w/your printer, contact HP tech support and/or post in their forums if they have one. 

  • My mid-2009 MacBook Pro's hard drive is near death. I want to install a new SSD and work from scratch. Please help.

    Recently, my mid-2009 MacBook Pro has been crashing when I close the screen ("it's having a problem recognizing when the screen is closed/open and deciding what to do, error overload etc.").  It wasn't an SMC issue so I took it to an Apple Store, ran some tests, and decided my hard-drive is failing.
    Not wanting to spend an insane amount of money on some "official apple hard-drive," I want to install a new 256GB SSD instead.  Hoping to squeeze as much life out of this computer as possible (in January I upgraded from 4 GB RAM to 8 GB), I would like to try and start from scratch, i.e. back-up important folders, music, photos etc. and only take that to the new hard-drive.  If someone could explain all the steps I need to take to safely complete this task (or point me in the direction of a guide) I'd appreciate it.
    Potentially Important info:
         Model:                mid-2009 13'' MacBook Pro
         Processor:          2.53 GHz Intel Core 2 Duo
         Memory:             4 GB 1067 MHz DDR3
         Software:            OS X 10.8.4
    Some additional questions I have...
         Should I be concerned with making a fully bootable back-up (not sure what that is called) as well?  If so, what program should I use to create it?
         How much more life should I try and push out of this computer?  I'm an engineering student and really only use it for web-surfing, music, and
              word-processing.  The batter was replaced in March, the RAM was upgraded to 8 GB in January.  When the battery was swapped, the trackpad went           nuts so that's new too.  Only other issues are a slightly loose audio jack and the left side of the screen being slightly wobbly (hinge is worn I'm told).

    cwgonzalez1192
         Should I be concerned with making a fully bootable back-up (not sure what that is called) as well?  If so, what program should I use to create it?
         How much more life should I try and push out of this computer?  I'm an engineering student and really only use it for web-surfing, music, and
              word-processing.
    Well there is no "official Apple HD / SSD" in any regard, no worries there.
    If as you say youre only using same for surfing and word processing, why the need for a SSD? You would not notice any speed diff. in use on either of those,....in boot times yes, but in word or surfing, not.
    You can push it likely a few more years, for mere surfing and word processing,...many many years.   Up TO the point that any major fixes become unrealistic relative to getting a new(ER) machine.
    Concerned with a boot clone?  yes and no.  Its an ideal immediate recovery, since you cannot boot from Time Machine, ....in case of HD crash, recovery takes seconds from boot, or 20 mins or so from removing old and installing a clone. All the prosumers and pros have at least one updated clone of their prime machines.
    You can do a "fresh install" if you choose, however if your current drive is FINE, why not merely clone it and save yourself some headache?...., but that is your prerogative of course.    Ideally 2 drives, one to backup your data (you need that regardless of installing a new drive for sake of a backup/archive,...ideally 2 actually, not merely one).
    You could clone internal to NEW SSD/HD , ...then offload unnecessary files to an external to free up space and clutter and run off the clone, and this would only take a couple hours......the clone itself takes approx. 40+ mins.
    CLONE Apps :
    Superduper does not clone the recovery partition, but that is NOT necessary if you keep the original HD as a “backup clone”. Most don’t bother with the recovery partition in a clone, however that is your prerogative.
    http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html
    (Free superduper APP above)
    CCC App
    http://www.bombich.com/

  • TS4002 I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password I want a solution to the problem, because in this way I

    I bought iPad and I can not access, A message appears asking me account and password when i return to the person who I purchased it from him, he told me that he forgot the account and password
    I want a solution to the problem, because in this way I will not benefit from the iPad

    There is no solution.  You have to provide the ID and password.  There is no way around it.  If the person you bought it from can't provide it, return it and get your money back.

  • My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    My phone has been smashed I need to get records of all my iMessages and texts from the last month. How do I get these?

    Do you have a backup of your iPhone which contains these messages?
    If so, you can restore a new iPhone from that backup during setup.
    If not, the messages are gone.

Maybe you are looking for