Converter

Runs Converter to generate CAP, EXP and JCA files from a Java technology-based package. By default the Java Card platform converter creates CAP and EXP files for the input package. However, if any one of the CAP, JCA or EXP flags are enabled, only the output files enabled are generated.

Table B-5 Parameters for Converter

Attribute Description Required

PackageName

Fully qualified name of the package being converted.

Yes, if the configuration file is not provided.

PackageAID

AID of the package being converted.

Yes, if the configuration file is not provided.

MajorMinorVersion

Major and Minor version numbers of the package, for example, 1.2 (where 1 is major version number and 2 is minor version number).

Yes, if the configuration file is not provided.

CAP

If enabled, tells the converter to create a CAP file.

No

EXP

If enabled, tells the converter to create a EXP file.

No

JCA

If enabled, tells the converter to create a JCA file.

No

ClassDir

The root directory of the class hierarchy. Specifies the directory where the converter looks for class files.

No

Int

If enabled, turns on support for the 32-bit integer type.

No

Debug

If enabled, enables generation of debugging information.

No

ExportPath

Root directories where the Converter looks for export files.

No

ExportMap

If enabled, tells the converter to use the token mapping from the pre-defined export file of the package being converted. The converter looks for the export file in the exportpath.

No

Outputdirectory

Sets the output directory where the output files are placed.

No

Verbose

If enabled, enables verbose converter output.

No

noWarn

If enabled, instructs the Converter to not report warning messages.

No

Mask

If enabled, tells the Converter that this package is for mask, so restrictions on native methods are relaxed.

No

NoVerify

If enabled, tells the Converter to turn off verification. Verification is turned on by default.

No

classpath

Classpath to use for this task. If required JAR files are not already in the system classpath, you can specify this attribute to put them in the classpath when this task is executed.

No

dir

The directory to invoke the Java VM in.

No

nobanner

Set this element to true if you do not want the Capgen banner showing.

No

version

Prints Converter version number.

No

ConfigFile

Configuration file containing all the configuration parameters for the converter.

No

In addition to the parameters specified in the preceding table, the target Java Card platform can be specified for the converter through the environment variable JC_TARGET_PLATFORM. If this environment variable is set, then the converter creates the CAP files for the specified target platform.