Skip to content

PlaintextKeys java.lang.NoClassDefFoundErrorΒ #384

@igarshep

Description

@igarshep

Describe the bug

Using PlaintextKeys in my java application using the latest gp.jar gives:

java.lang.NoClassDefFoundError: pro/javacard/gp/PlaintextKeys
Caused by: java.lang.ClassNotFoundException: pro.javacard.gp.PlaintextKeys
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 9 more

Information about your card and used reader

As much information as you have:
Not sure how relevant it is

  1. NXP
  2. Identiv SPR332v2

Expected behavior

To be able to continue to use 3 bytes arrays for enc, mac, and dek using the PlaintextKeys class. In fact, the jar does not have any compile time issues and can find the references, but during runtime it does not seem to find the actual class to run.

Additional context

Previous versions of the jar did not have this issue. So either its intentionally being left out with no clear alternative, or this was a mistake. Hopefully the latter :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions