Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException: .. cannot be cast to java.desktop/java.applet.Appel #117

Open
LDami opened this issue Dec 15, 2017 · 3 comments
Open

Comments

@LDami
Copy link

LDami commented Dec 15, 2017

Hi,
When I try to build my projet on IntelliJ with the .jar file included (in files-project structure-module-dependencies), i've an error !

My code:

public  class myWallet extends javacard.framework.Applet
{
 ....
}

Error:
java.lang.ClassCastException: myWallet cannot be cast to java.desktop/java.applet.Applet

Thanks in advance.
Damien.

@licel
Copy link
Owner

licel commented Dec 22, 2017

Check your import section, it looks that you use in the code java.applet.Applet instead of javacard.framework.Applet.

@LDami
Copy link
Author

LDami commented Jan 5, 2018

Hi,
It's correct, I use java.applet.Applet and not the other one, i dont understand !

@licel
Copy link
Owner

licel commented Jan 16, 2018

You need to import javacard.framework.Applet instead of the java.applet.Applet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants