initializeUpdate function of the com.ibm.jc CardManager class

Hello
I'm currently trying to create a JavaCard Applet loader and I get in trouble with the function initializeUpdate of the CardManager class. Below is the code that I write to initialize communication with the javacard/reader...
the list of all players with a card shows
readers is TerminalFactory.getDefault () .terminals () .list (State.CARD_PRESENT);.

{if (Readers.IsEmpty ())}
return;
}

establish a connection with the reader
expression = (PCSCJCTerminal) JCTerminal.getInstance ("PCSC", readers.get (0) m:System.NET.SocketAddress.ToString () .substring (15));
term. Open();
RTA = new ATR (term.waitForCard (2000));

connect to the map
System.out.println ("layout map...");
map = new JCard (term, atr, 2000);

Select Cardmanager
System.out.println ("selection of card manager...");
cardmanager = new CardManager (card, CardManager.daid);
cardmanager. Select();

installation key
Byte [] dfltKey = c2b ("404142434445464748494a4b4c4d4e4f");
cardmanager.setKey (new OPKey (1, 1, OPKey.DES_ECB, dfltKey));
cardmanager.setKey (new OPKey (1, 2, OPKey.DES_ECB, dfltKey));
cardmanager.setKey (new OPKey (1, 3, OPKey.DES_ECB, dfltKey));

authenticate to cardmanager
System.out.println ("authenticate to the Manager of the map... \n");
* cardmanager.initializeUpdate(1, 0,CardManager.SCP_01_05); *
cardmanager.externalAuthenticate (OPApplet.APDU_CLR);

When I run the program, everything goes well until the initializeUpdate function that throws the exception:
Exception in thread "main" java.lang.NoClassDefFoundError: com/ibm/jc/CL3
at com.ibm.jc.OPApplet.initializeUpdate (unknown Source)
at com.jnet.tools.LoadApplet.initConnection(LoadApplet.java:80)
at com.jnet.tools.LoadApplet.load(LoadApplet.java:88)
at com.jnet.benchmarks.ClientBenchs.runTest(ClientBenchs.java:636)
at com.jnet.benchmarks.ClientBenchs.main(ClientBenchs.java:485)
Caused by: java.lang.ClassNotFoundException: com.ibm.jc.CL3
java.net.URLClassLoader to $1.run (unknown Source)
at java.security.AccessController.doPrivileged (Native Method)
at java.net.URLClassLoader.findClass (unknown Source)
at java.lang.ClassLoader.loadClass (unknown Source)
to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (unknown Source)
at java.lang.ClassLoader.loadClass (unknown Source)
at java.lang.ClassLoader.loadClassInternal (unknown Source)

Since I'm quiet new in Java, I don't know what means this exception. I think that all the parameters of the function are good since I use the same when I "manually" load Applets on the map with the same settings and it works. My JRE is 1.6 (but I also tried 1.5), and the JCOP tools version is 3.2.7.
I also tried with another card with various AIDS and SCP parameters different but I still have the same error.
I thank in advance for the future fold

862087 wrote:
Since I'm quiet new in Java, I don't know what means this exception. I think that all the parameters of the function are good since I use the same when I "manually" load Applets on the map with the same settings and it works. My JRE is 1.6 (but I also tried 1.5), and the JCOP tools version is 3.2.7.

The problem is not with your code, but your classpath. The card handler class seems that depends on another class that is missing when running. He is not recovered at the time of the compilation that you compile not against it. Try adding the crypto.jar located in the same location as the offcard.jar you are using.

See you soon,.
Shane

Tags: Java

Similar Questions

  • I have published my muse built Business Catalyst site and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    I recently published my muse built the Business Catalyst site for preview and all from the 'Site in the web browser view' function in the program of the Muse does not work. Screen comes up with a message that it cannot locate the page and suggests I check the ip address.

    Hello Jimw93000314,

    Are you preview site in the edge browser? When you preview the page in the browser Muse create a local server to give you the preview in the browser. With the edge browser, there was a reported issue to access the local server.

    Please click the link below that shows the steps to enable the browser to edge.

    http://StackOverflow.com/questions/30334289/cant-open-localhost-in-Microsoft-edge-project-spartiate-dans-Windows-10-APER cu

    I'm sure this will help.

    Kind regards

    Vivek

  • Matter of finding the resources function VISA after COM port disconnected

    I have an application in which I use two COM ports for communication, both only is active.

    Between testing a com port gets connected and disconnected dynamically. I am able to connect and disconnect without problem.

    Now after my com port dynamic disconnected, its not visible in device as Manager, but if I search all the com port available using VISA find resource once it disconnects, then dynamic port COM is also visible in the list.

    Name of the USB interface is USB Serial Port and the com port is dynamic which will be disconnected. VI attached

    Any suggestion please


  • If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    Hello

    The next operating system update, watch OS 3, will be available for all Apple Watch models, including the first generation watches.

    We should go out on 13 September, after which it can be installed by following the steps detailed here:

    More information:

    http://www.Apple.com/Watchos/

  • Help automate and functions by the numbers

    Hello!

    I need assistance with numbers 3.6.1 for OS X El Capitan. My question is really complicated, and I couldn't even begin to understand what to search using search engines, that is why I turn to the experts in communities for help.

    What I'm trying to do is set up a system where when an a table on a single sheet is changed, the information on a second table on a second sheet is updated to match. Specifically, on the first table on the first worksheet, I keep a spreadsheet of all the video games I have in my collection, and with each game video I save several data as platform, Publisher, genre and ESRB rating points, and so on, as follows:

    On the second picture, I have an assortment of tables of data that takes into account the number of games I have they fall into each of these same points data in separate tables, so, how many games I have for every platform, every Editor, in every kind and with each ESRB rating, as follows:

    I was able to set up all the tables on the second sheet automatic update of the charges for each individual in each category element, so if I add, say, a new game of Nintendo 3DS to the first sheet on the first table, the corresponding to "Nintendo 3DS" number on the table of the second sheet platform is automatically updated. I did this by manually applying the COUNTIF function to each individual B cell in each table and was pointing at the corresponding column of table on the first worksheet with the correspondent of expression of the cell [for Game Boy Advance, for example, it looks like this: COUNTIF (Collection::Table 1: $Platform, "Game Boy Advance")]. Part of what I want to accomplish is to have all the B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now. Is something like this? If so, I want finally to do is to have the paintings on the second sheet automatically be updated to take account of the new factors of table on the first worksheet. That is if I add a game to a new platform, we will say Virtual Boy, to the table on the table of the first sheet, is it possible to have the picture of the platform on the second sheet automatically add a new entry for Virtual Boy, and should the COUNTIF automatic formatting for the work of B lymphocytes as well, automatically count the number of entries of Virtual Boy in the platform column the first sheet as well?

    Here is a link to my spreadsheet in iCloud for reference (remember, it's 'View Only'): https://www.icloud.com/numbers/000AvaqQSb1iRb3-5XbyaoNww#My_Collection

    I hope all this makes sense to someone out there, I tried to explain as clearly as I could. I'm still sort of novice in numbers, if I appreciate any amount of teaching or imparting wisdom!

    Thank you

    -Kill

    Kill them salvation.

    for all B cells on the second act of sheet as "smart cells", if you want to, where they are all automatically use the COUNTIF function using the expression in each corresponding to a cell, instead of the manual set up I have now.

    Formula in B2 (and fill by dragging the handle downwards to fill yellow)

    = COUNTIF(Collection::Table 1::$B,A2)

    B2 in the platform table and paste in the length of Table B2. It will show zero because he seeks the wrong column in the table on the sheet Collection.

    Click on the "Collection::Table 1: $B" diamond in the formula editor to select.

    Go to the Map Collection and click on the label C.

    AHA! It always displays zero because does not match the description of length:

    "Very short (less than 5 hours)" on the card product and "Very short" on the Collection sheet.

    The descriptions must match exactly.

    The easy way to change them in the Collection journal is to sort the table. But first of all insert another column, and then type 1 then 2 and fill down. Then you can sort to the original order.

    Now sort the column Length.

    Change the description (copy and paste into each "block")

    Funny looks because the line height are different

    The COUNTIF works because the descriptions are now (the formula now displays column D because of the new column of original order of Collection).

    I'll post this before the time-out annoys me.

    Kind regards

    Ian.

  • Where is the function of the number of Recipricated on the first HP?

    Hello

    I am trying to locate the 1 / x (number recipricated) function on the First HP - as I don't know if the terminology is correct for the unit, when you do a find in the PDF manual - it comes in white.

    (Note: as a test, I tried to do the same terminology search on the HP 50 G and it came in white too - although I can clearly see the function for this button)

    Someone help on this one, please?

    See you soon

    FG

    The 1 / x key's the Shift fracture.   It looks like x ^-1.

    -Joe-

  • PID regulator takes advantage of the transfer function of the model sys

    Hello

    I need to find a controller for my system...

    I have my system as transfer function model and I want to find the pid of the gains of this system by using its transfer function!

    All block in labview 8.5 to do this step?

    Concerning

    Hello

    Maybe this link will come close to the feature you're looking for:

    Analytical design of PID VI

    http://zone.NI.com/reference/en-XX/help/371894E-01/lvctrldsgn/cd_pid_design_pal/

    This function was introduced in LabVIEW 8.5 in the Control Design and Simulation Module. There is a limitation, because this process analysis based on one or more transfer SISO (single Input Single Output) functions. The help article above comes from aid in 2010. Below, I've included the 8.5 reference:

  • G8D94PA #ACJ: is it possible to change the function of the FN keys?

    Hello

    I sometimes use windows 7 32-bit due to my software dependency. in some software I have to use fn keys (F1 to F12) frequently with the combination of other keys. It is possible to enable the functionality of the fn keys as from now on if I have to use F5, so I use FN + F5 combination. So in this software I have to use F2 to F7 & I have to press CTRL + ALT + FN + F2 to F7.

    Please share any solution...

    Hello

    Shut down the laptop.  Tap away at the esc you key start Notepad to open the Start Menu.  Select the Bios ( f10 ) option, and then change the figure in the document at the following link.

    http://support.HP.com/us-en/document/c02035108

    Kind regards

    DP - K

  • How to detect the data received in the com port?

    I used NI-VISA, read to read function and tried to write and read the same data through back loop. I have read from the port, but I need to read only when all the data is in the port.how series I detects all data received in the com port? Based on the data received to write the data to the port only i need.

    Please help me

    Better it should work... just create your own port number, I used 20 com

  • can't find the function with the officejet basic driver 4500 (G510n) analysis

    OfficeJet 4500 Wireless interface, op system is windows 7 64 bit.

    Used base http://ftp.hp.com/pub/softlib/software11/COL32446/mp-80359-1/OJ4500vG510n-z_basic_13.exe driver

    This should be ok for printing and scanning.

    I can not find the scan function in the property of the printer and have no idea how scan. can help?

    Thank you very much

    Tom

    Hi Tom,

    Please follow the steps below to scan using the basic driver functionality:

    http://support.HP.com/us-en/document/c02459304

    Kind regards

    Shlomi

  • What is the function of the keys filter & stick in PC

    Original title: keys to filter/Stick

    What is the function of the keys filter & stick into the PC. What is functions of these keys.

    Hello

    FilterKeys is a keyboard feature that instructs the keyboard to ignore brief or repeated keystrokes. Using FilterKeys, you can also slow down the speed at which a key repeats when you hold.

    For more information visit:

    To turn on FilterKeys

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/access_filterkeys_turnon.mspx?mfr=true

    StickyKeys is designed for people who have difficulties to maintain two or more keys simultaneously. When a shortcut requires a key combination, such as CTRL + P, StickyKeys you press a key amending (CTRL, ALT, or SHIFT), or the Windows logo key () and keep it active until the other touches.

    For more information visit:

    To change StickyKeys options

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/access_stickykeys_settings.mspx?mfr=true

  • MS can add two functions to the "Task Manager"?

    I want a quick way to remove unwanted programs from my computer (XP Pro);
    What I think is the fastest and easiest way to remove programs that collide,
    marketing of spyware and other items I don't want: press 'Ctrl-Alt-Del ".
    and use the 'Task Manager' program; but, with a new option in "Applications":

    I should be able to "end program and delete. This new function ("end of program and remove")

    stop the program to run as the program "ends".
    function and it would also remove the program from your computer; same thing for
    the window of 'process '.

    There are tracking as "The ADService.exe" software that
    I also want to 'End the process' and 'Delete' and 'Block' to be ever
    installed again.  The 'Task Manager' would be a simple and great place
    to add these functions. The function 'Block' is also a new feature for "Task Manager."

    Send your comments:

    http://mymfe.Microsoft.com/Windows%207/feedback.aspx?formid=195

    André

    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • The functions of the left and right of my mouse buttons keep swapping without doing me anything, and it's really annoying!

    For some reason any the left and right buttons on my mouse keep turn on their own without me doing anything. Once this happens, I go into the properties of the mouse, apply the default and then that's fine. That lasts anywhere from 3 hours to 3 days. I don't know if it's a problem of Vista or my computer, but it's really annoying. I restarted my computer after changing the settings and it still does not help. Can someone help me with this?

    Hi regretfullybliss,

     

    Welcome to Microsoft Answers Forums.

    There could be conflicts with the key functions of mouse or a corruption with the mouse driver.

    I suggest you update to the latest mouse driver, you need to visit the Web site of the manufacturer of the mouse to the GET the latest drivers for the mouse.

    Updated a hardware driver that is not working properly

    http://windowshelp.Microsoft.com/Windows/en-us/help/b3c6477e-1111-4B9F-A52A-fffdc51e9c901033.mspx

    How to change the mouse settings.

    http://windowshelp.Microsoft.com/Windows/en-us/help/efd700f8-bbc0-4F04-9f78-3bdb4bbf47011033.mspx#EF

    There could be the possibility that some third-party program or service is in conflict with the key functions of the mouse.

    To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    Perform the check and the clean boot if you have the problem.

    1. click on start, type msconfig in the search box and press ENTER.

    User account control permission

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.

    2. in the general tab, click Selective startup.

    3. under Selective startup, clear the check box load startup items.

    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.

    5. click on OK.

    6. When you are prompted, click on restart.

    7. after the computer starts, check if the problem is resolved.

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    Click Start, type msconfig.exe in the start search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click on continue.

    On the general tab, click the Normal startup option, and then click OK.

    When you are prompted to restart the computer, click on restart.

    If the problem is resolved to check what is the cause of the problem, referring to the link given below:

    http://support.Microsoft.com/kb/929135

    Hope this information is useful.

    Let me know if it worked.

    All the best!

    Thank you, and in what concerns:

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to configure SMTP settings to the 'SCAN to Email' function on the XEROX WorkCentre 3615 multifunction printer?

    Separated from this thread.

    Have another QUESTION of community, please can someone help me on how to configure the SMTP 'STEP by STEP' settings to "SCAN to Email" function on the XEROX WorkCentre 3615 multifunction printer? Where should I start? On the computer or the printer? I have gmail emails to serve 'FROM' and for people, I'll send scanned docs, what is better to use email, gmail, at & t, yahoo or so? Thank you in advance.

    Hello

    Please contact Microsoft Community.

    Please confirm which email client do you use?

    I suggest you refer to the article mentioned to implement a multifunction device or an application to send emails with Office 365 for reference:

    https://TechNet.Microsoft.com/en-us/library/dn554323%28V=EXCHG.150%29.aspx?f=255&MSPPError=-2147217396

    I hope this helps. Do not hesitate to contact again us for any technical assistance,

  • Call the function in the UI part without head

    I develop some app with no head.

    When I change the code in the head part and build - launch. But nothing changes in the part without a head.

    I have another solution call the function in the UI part headless. But whatever it is called.

    Please help me solution?

    The part without head of a long walk without head application is still running in the background. It will not update until you stop the part without a head.

    To stop the game without leading the race, you have three choices:
    (1) build increment in the bar file version - descriptor.xml. This will force the part without head to stop and restart with the new code.

    (2) use the monitor of the device to manually stop your application from running. Then, new launch and your game without head will run the new code.

    3) to implement your own way without a head, like a button that would send a personalized call to headless with (say) action "com.myDomain.myAppName.SHUTDOWN" and when headless receive this invocation, operate you this line:
    BB::application::instance()-> quit()
    This will make the part without head stop, then you run and your part without head will take place the new code.

    I prefer the #3 method, but if you do, don't forget to hide this feature before releasing to the public.

Maybe you are looking for

  • New iMac to factory settings reset

    How to reset a new iMac to factory settings?  Something odd began to happen with the cursor the thought of waiting time after a summary typo Web page the first day or the day I got this machine. I would like to start all over again from factory setti

  • Printing a blank page

    Whenever I print a document follows a white. How can I fix?

  • Intertwining of the tables on FPGA

    Hello I am trying to interleave 1 3 tables for writing a FIFO DMA on an FPGA, but I can't make it work properly. When I try 2 1 tables it of ok, but with 3 elements are not properly interlaced and the result is that all 1 3 bays are mixed up. I tried

  • Reremplie cartridge rejected by ENVY 4500

    I put a cartridge reloaded in my DESIRE to 4500 and got a message saying that she was an old cartridge and would not work the urge to 4500. The cartridge I pulled out and showed that I put in the two part # CH562W HP61.  This means that the printer w

  • Audiobook problem

    I bought an audio book that apparently had an audio problem. When I arrived at a certain place in the book my rocket stops and I couldn't restart it until I loaded. After that I loaded it, I restarted the book and he did the same thing. Now there is