Running Client Application for Applet Management
This is a guidance for compiling and running with command line parameters in Linux and Windows.
Please be sure that the simulator ([${JC_HOME_SIMULATOR}/runtime/bin/jcsl |
%JC_HOME_SIMULATOR%\runtime\bin\jcsw.exe]
) is started properly (e.g. in
Linux the LD_LIBRARY_PATH
environment variable must be properly
exported).
Use the following commands to compile and run the Java client application:
[export | set] JAVA_HOME=<<JAVA_DEVKIT_PATH>> # path to OpenJDK Java Standard Edition
[export | set] JC_HOME_TOOLS=<<JAVACARD_TOOLS_PATH>> # path to the latest Java Card Tools
[export | set] JC_HOME_SIMULATOR=<<JAVACARD_SIMULATOR_PATH>> # path to Java Card Simulator from this SDK
# Compiling Java client on Linux:
export EXT_MODULEPATH=$JC_HOME_SIMULATOR/client/AMService:$JC_HOME_SIMULATOR/client/COMService # path to the modules of the Client API Application Management Service
$JAVA_HOME/bin/javac -cp
.:$JC_HOME_SIMULATOR/client/AMService/amservice.jar:$JC_HOME_SIMULATOR/client/COMService/socketprovider.jar:$JC_HOME_SIMULATOR/client/COMService/extension.jar
--module-path $EXT_MODULEPATH --add-modules ALL-MODULE-PATH <<Java client source file(s)>>
# Compiling Java client on Windows:
set EXT_MODULEPATH=%JC_HOME_SIMULATOR%\client\AMService;%JC_HOME_SIMULATOR%\client\COMService # path to the modules of the Client API Application Management Service
%JAVA_HOME%\bin\javac -cp
.;%JC_HOME_SIMULATOR%\client\AMService\amservice.jar;%JC_HOME_SIMULATOR%\client\COMService\socketprovider.jar;%JC_HOME_SIMULATOR%\client\COMService\extension.jar
--module-path %EXT_MODULEPATH% --add-modules ALL-MODULE-PATH <<Java client source file(s)>>
# Running Java client on Linux:
$JAVA_HOME/bin/java -cp
.:$JC_HOME_SIMULATOR/client/AMService/amservice.jar:$JC_HOME_SIMULATOR/client/COMService/socketprovider.jar:$JC_HOME_SIMULATOR/client/COMService/extension.jar
--module-path $EXT_MODULEPATH --add-modules ALL-MODULE-PATH <<Java client class file>> <<parameter(s)>>
# Running Java client on Windows:
%JAVA_HOME%\bin\java -cp
.;%JC_HOME_SIMULATOR%\client\AMService\amservice.jar;%JC_HOME_SIMULATOR%\client\COMService\socketprovider.jar;%JC_HOME_SIMULATOR%\client\COMService\extension.jar
--module-path %EXT_MODULEPATH% --add-modules ALL-MODULE-PATH <<Java client class file>> <<parameter(s)>>