How to get java card version from card? Is there any way how to get version of JC from the card. Or should I try to install applets with specific for each JC version option
short version = JCSystem.getVersion();
The method getVersion()
returns the major and minor version of the Java Card API (each part in one byte). There is no method to distinguish between sub-versions (e.g. between 2.2.1 and 2.2.2).
Only knowing that your chip contains a Java Card runtime environment, there is no means to query more specific information from the chip. (Some chips might expose more specific information though.) In general you should obtain such information from the manufacturer/your supplier.