Exception for the DAC device

Hello
I am trying to run the PurseClient.java sample in Eclipse, but I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/Sun/javacard/apduio/CadDevice
to com.sun.javacard.clientlib.ApduIOCardAccessor. < init >(Unknown Source)
at PurseClient.main (PurseClient.java:33)
Caused by: java.lang.ClassNotFoundException: com.sun.javacard.apduio.CadDevice
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)
... 2 more

I don't know what the problem is, I run ARB-i demoee (the name of my EEPROM image) and then I run client eclipse award.

The error is on line 33:

/*
 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.rmi.*;
import javacard.framework.*;

import com.sun.javacard.clientlib.*;
import com.sun.javacard.rmiclientlib.*;

import java.util.ResourceBundle;

public class PurseClient {
    
    private static final byte[] RMI_DEMO_AID = {
        (byte)0xa0, (byte)0x00, (byte)0x00,
        (byte)0x00, (byte)0x62, (byte)0x03,
        (byte)0x01, (byte)0xc, (byte)0x8,
        (byte)0x01
    };
    
    public static void main(String[] argv) throws RemoteException{
        
        ResourceBundle msg
        = ResourceBundle.getBundle("MessagesBundle");
        
        CardAccessor ca = null;
        
        try {
            
            // open and powerup the card
            ca = new ApduIOCardAccessor();
            
            // create a "filter" for RMI protocol
            JCRMIConnect jcRMI = new JCRMIConnect(ca);
            
            // select the Java Card applet
            if(argv.length == 0) {
                jcRMI.selectApplet( RMI_DEMO_AID, JCRMIConnect.REF_WITH_CLASS_NAME );
            }
            else {
                jcRMI.selectApplet( RMI_DEMO_AID, JCRMIConnect.REF_WITH_INTERFACE_NAMES );
            }
            
            // obtain the initial reference
            System.out.print(msg.getString("msg01")+" ");
            Purse myPurse = (Purse) jcRMI.getInitialReference();
            if(myPurse != null) {
                System.out.println(msg.getString("msg02"));
            }
            else {
                throw new Exception(msg.getString("msg03"));
            }
            
            // get the balance amount
            System.out.print(msg.getString("msg04"));
            short balance = myPurse.getBalance();
            System.out.println(msg.getString("msg05") + balance);  // prints 0
            
            System.out.println(msg.getString("msg06"));
            myPurse.credit((short)30);
            System.out.println(msg.getString("msg07"));
            myPurse.debit((short)15);
            
            System.out.print(msg.getString("msg08"));
            balance = myPurse.getBalance();
            System.out.println(msg.getString("msg05") + balance);  // prints 5
            
            System.out.println(msg.getString("msg09"));
            myPurse.setAccountNumber(new byte[]{5,4,3,2,1});  // expecting OK
            
            System.out.print(msg.getString("msg10"));
            byte[] acct_number = myPurse.getAccountNumber();
            printArray(acct_number);  // prints 5 4 3 2 1
            
            System.out.println(msg.getString("msg11"));
            myPurse.setAccountNumber(new byte[]{6,7,8,9,10,11});
            
        }
        catch(UserException e) {
            System.out.println(msg.getString("msg12") + e.toString());
            System.out.println(msg.getString("msg13") + Integer.toHexString(0x00FFFF & e.getReason()));
        }
        catch (Exception e){
            System.out.println(e);
        }
        finally {
            try{
                if(ca!=null){
                    ca.closeCard();
                }
            }
            catch (Exception ignore){
                // System.out.println(ignore);
            }
        }
    }
    
    private static void printArray(byte[] arr) {
        for(int i=0; i<arr.length; ++i) System.out.print(" " + arr);
System.out.println();
}

}
[\code]

in opencard.properties. You must set:

OpenCard.terminals = de.cardcontact.opencard.terminal.jcwdpsim.JCWDPSimCardTerminalFactory|JCWDPSimulation|JCWDPSIM|0|localhost|9025

See you soon,.
Shane

Tags: Java

Similar Questions

  • Monitor devices blackBerry Z10 - black except for the storage tab

    Hello

    My monitor of the device (from quick settings) is completely empty except for the storage tab. This means that battery, processor, and memory are all does not properly.

    Any suggestions?

    Thank you!

    Hello and welcome to the community!

    Each time a random strange behavior or slowness comes, the first thing to try is a proper reboot:

    • Pre-BB10 ONLY devices. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes.
    • Peripheral BB10. Hold the top button until the counter reaches zero. Wait for the unit to be completely stopped (for example, nothing appears on the screen, no lights, etc.). Hold the top button until the red light. Wait through the entire boot process. If this fails, you can try the method of battery-pull above, but it is normally NOT recommended unless nothing else works.

    See if things return to functioning. Like all computing devices, BB suffers from memory leaks and others... with a hard reboot is the best remedy.

    Good luck!

  • Problems with sound and Audio - realtek hd audio is not compatible for the audio device

    I use Windows XPand receives my sound and audio to work, I got a lot of response to this problem, but not the right answers, I got my sound set correctly but my audio does not work. In my default audio device is defined as realtek hd audio that is not compatible for the audio device, I tried to remove it without any success because I don't know what else can be done to solve this problem. I did an update can also be found a update driver for my sound card in windows. I also run microsoft fixi it and said that my default audio device is wrong, I tried to change, but nothing seems to work. Before that my computer was working fine and now all of a sudden nothing works. Everthing is up-to-date on my computer except the I'm having problems. all I ask you, how can I removed realtek hd audio since I graduated from the audio device by default.

    Thanks for a quick reply.

    Hello

    You will remember to do recent changes to the computer before the show?

    I suggest you to download and install the latest driver audio realtek for Windows XP from the link and check if the problem occurs:

    http://www.Realtek.com.tw/downloads/downloadsCheck.aspx?langid=1&PNid=24&PFID=24&level=4&Conn=3&DownTypeID=3&GETDOWN=false

  • iPhone Sync with PCI trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    I am trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    Mac or Windows?

  • How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    How can I get the COMPLETE serial number to display? This number shows except for the 4 last digits.

    Hi Infogoddess,

    Thank you for using communities Support from Apple! If you try to find the serial number of your iPod touch or another Apple product, you can find information and the steps in the following articles useful:

    iPod: how to find the serial number - Apple Support

    Find the serial number of your Apple - Apple Support product

    See you soon

  • A1700n not allowing the installation of audio drivers for the audio device.

    HP a1700n

    Windows xp sp2

    recently installed a new hard drive and reinstalled the operating system from scratch.

    When attempting to install the driver for the audio device, named as "Audio device on high definition Bus" I'm an abupt with a blue screen stop referring to * RltekAUD.sys* * (hot flashes too fast to get the entire message.)

    Before you install the new hard drive, the system worked well.  I tried the fix suggested by HP, 4 different realtek drivers.

    I tried to install in safe mode, which installs without error, but no sound, and regualr mode restarts, causes the blue screen with the error above.

    Rotate the processor Dual core AMD Athlon 64 x 2 3800 +.

    I disconnected an additional device and can't seem to get my sound.

    Anyone else having a similar problem?  Fix known?

    It was an exhausting fix.  However, a problem that seems prevalent with machines of OS that came with Vista, but got XP installed on them.

    The problem is resolved: that is the solution and the method.

    First, I tried to reinstall the operating system and installing the drivers in a different order.  -WORK

    I reinstalled the operating system and tried to install the driver in safe mode, partial correction, pilot would install, but would not start in standard mode - WORK NO

    Downloaded and tried 5 Realtek driver different solutions all the way from rolling back or front - WORK NO

    SOLUTION THAT WORKED-

    Found this in another forum:

    Log in to regedit, search for "bus auu", delete all entries

    delete "" busMicrosoft UAA HD audio driver " since the Device Manager"

    Restart in safe mode

    install the version 2.02 driver realtek

    Restart in safe mode

    audio work

    relocation of bus Microsoft UAA HD audio driver

    SOLVED

  • Update problem can remove them except for the most recent? Thank you!

    Hello!  In Control Panel, there are about 20 programs that all say the same thing.  They are updated for Windows and IE 8 security.  The only difference is the date, which date as far back as 2010.  Can I remove them except for the most recent?  Thank you!

    # They are all necessary.

  • Hi im trying to media share with my ps3 and have two devices see each other, but my wmp allow me to click the allow for the sony device what can I do

    Hi im trying to media share with my ps3 and have two devices see each other, but my wmp allow me to click the allow for the sony device what can I do

    Hello

    1 how long have you been faced with this problem?
    2. don't you make changes on the computer before this problem?

    Take a look at the following article that may help you.

    http://community.us.PlayStation.com/message/2371488

    I recommend you contact Sony support teamfor further assistance.

  • Obsolete devices in the AutoPlay list & several entries for the same devices

    I would like to remove 4 entries for "Canon PowerShot A75" on the list of automatic run settings since I no longer have this camera.  Can someone tell me how to remove these?  (I have Vista Home Premium SP2)

    Someone else has multiple entries in the auto playlist for the same device?  Someone managed to remove them?

    Vestalite,
    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.

    Always back up the registry before making changes.  See this article on how to back up and restore the registry:
    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756

    It is possible to manually edit the system registry to remove the AutoPlay handlers. The AutoPlay handlers are stored in the following registry location:

    HKEY_LOCAL_MACHINE
    \CurrentVersion\Explorer\AutoplayHandlers\Handlers\

    Above registry key stores the Settings Manager, which is the action to perform when selected on AutoPlay.

    HKEY_LOCAL_MACHINE
    \CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\

    Above registry key stores the names of different events, which contains associated managers. Which mean all entries added as value to the event will appear as an option when the particular event occurs and the trigger AutoPlay menu dialog box.

    Let us know if this solves your problem.

    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • IHAVE pavilion g6 2006tx with win 8.1 pro ineed driver for the unknown device

    driver for the unknown device

    Hello:

    This is the driver you need for this device:

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-116584-1&cc=us&DLC=en&LC=en&OS=4132&product=5278311&sw_lang=

  • BlackBerry Smartphones Application Loader said... way has no software of BB device for the connected device.

    Mine is a new 8320.  I installed the Desktop with Media Manager software.  Seems the 8320 on the CD Office and the online version does not include Media Manager so I installed v 4.2 Service Pack 2, which includes the Media Manager.

    Now cannot transfer music files (I get a memory error output) and when I go to the application manager to check the memory, he can't read my 8320 and I see the message "doesn't have a device for the connected device software."

    How can I add 8320 sotware for the Application Loader device so that it can read my memory allocations 8320, etc.?  What else could be the reason I can't transfer music files?

    First of all, without a press card is impossible to move higher to 2.86 MB files to the device.  If you get a media card you can load any file size to him and you don't even need Media Manager.

    Secondly, you will need to install the software on your PC so that DM will recognize it on the device.  You can get the software from your carrier download site.  Here is a link that should help you:

    http://www.BlackBerryFAQ.com/index.php/BlackBerry_Operating_System_Downloads

  • Connect my phone: not found a driver for the unknown device

    USB port

    wanted to connect my phone to the computer, says "not found a driver for the unknown device" what to do?

    View your manufacturers of mobile phones and FAQ about the connection to win7 support

  • Windows has stopped this device because it has reported problems. (Code 43) A request for the USB device descriptor has failed.

    Separated from this thread.

    Hello

    I'm faced with the same question. I went to settings of your laptop and ran the recovery, but it did not help. I went to Device Manager and I noticed an error: Windows has stopped this device because it has reported problems. (Code 43) A request for the USB device descriptor has failed. Tried to fix that with an alternative of Microsoft Community (http://support.microsoft.com/mats/hardware_device_problems/?wa=wsignin1.0), but the issue could not be resolved. I don't know if they are related, but I think so. Spent so much time trying to solve this problem and would be really grateful for the help. Have had the computer for less than 3 weeks...

    Ewa

    Hi Ewa,

    Thanks for the reply.

    I suggest you to update the drivers for the chipset of your computer and check if it helps. You can use the link below. Select the appropriate component and the operating system from the list. The link given below is for Lenovo 11 2 yoga, if you have any other device then please provide us with the exact model number or select the correct model number.

    http://support.Lenovo.com/us/en/products/laptops-and-netbooks/Yoga-series/Yoga-2-11-notebook-Lenovo?c=1

    As you mentioned that the other two USB ports work correctly, according to me is not a problem with the driver. It seems to be a hardware problem.

    Let us know the status.

  • Reinstall Acrobat 9 Pro, originally purchased in the past of CS 4 Standard, on a MacBook Pro, OSX 10.11.5. To install all components except for the Pro.

    Reinstall Acrobat 9 Pro, originally purchased in the past of CS 4 Standard, on a MacBook Pro, OSX 10.11.5. To install all components except for the Pro.

    It is probably not compatible with your operating system, but you try to take advantage of some of its features by checking the Setup logs.

    Troubleshoot installation with log files in Adobe Creative Suite (CS5, CS5.5 CS6), PS Elements and Premiere Elements

  • . Ovf failure package deployment - inconsistent backup device specified for the '7' device

    Hi all

    While trying to install the virtual machine based on the deployment of the package .ovf, I came across the following problem:

    "Incompatible device Backing specified for the"7"device".

    At the beginning I had at my disposal a .ovf package created in VMware ESXI 5.1. My intention was to use it to install box virtual machine in VMware ESXI 5.5. I realized without having big problems with the installation.

    In the next step, I created another package .ovf, taking for base virtual machine already running in VMware ESXI 5.5. Then I tried to deploy built in this model of .ovf medium to clone the virtual machine in VMware ESXI 5.5.

    Unfortunately during the Import exported first of all on the same model of VMware ESXI .ovf 5.5 install almost the same machine I got the following error message:

    Incompatible device specified for the '7' device support?

    Can you please how to cope with this problem, or at least what the error message refers to? I was looking on the internet the cited 'success of 7' but wihout peripheral.

    Thanks and regards,

    ELRA

    In most cases, there could be some hardware associated with the virtual machine when you first export the ovf.  Now on the destination where you try to deploy there do not have this device and its origin of the error.

    See if you had a CD-ROM / Audio or video or any other devices were attached with the virtual machine when you first did an OVF. ?

    ~ dGeorgey

Maybe you are looking for

  • Nothing is happening with the product recovery disc

    I dropped my laptop yesterday and now it will not load Windows. I tried 'Start-up launch repair' it says Windows is loading files, comes up with the screen of Microsoft Corporation, then will just a black screen. I put in my product (Windows Vista) r

  • Satellite Pro 6100 shows flashes code 73 h

    Hello I have a SP6100 where only power led flashes. I think the code is long - long - short - short - long - long - long - short that represents 73 h I think. The picture says PPV voltage is not less than 0.68V when the computer is turned off. But do

  • Start of hot Mail

    takes less than 1 minute to set up, can it be fixed

  • Cannot access Internet after installing the latest Windows updates

    Hello updated the last windows update and now can not access the internet even if I said I'm on internal appreciate any help in this matter. Have reset the laptop to an earlier date and no problem, but as soon as I download the update of windows, no

  • URL link in the timeline

    Hello community,My problem is so easy that I couldn't even find a question in the forum.Simple I want a URL link in my calendar.But the first information (oh no, not again), I'm not a coder:In fact, I want a Logoanimation of which I composed in seque