|
It is necessary to configure the work environment in order to run the different samples in the test area.
Keep in mind that a Java version is required to run the samples. Specifically, Java JDK runtime 1.4.2_10 has been used to develop these samples.
The first step is to create a folder in the system, for instance C:/examplesSW. The compressed file smartwrapper.zip should be downloaded in this folder and decompressed.
Once the file is decompressed, a structure like the following will remain:
smartwrapper/lib
/src
smartwrapper.properties
trustedx-demos.truststore
The libraries required for running the samples are located in the lib folder and src contains the auxiliary java files. The root holds the smartwrapper.properties files that contain the configurations required to use the Java API and trustedx-demos.truststore.
Afterwards, to run each of the samples, the corresponding sampleSW.zip file should be downloaded and decompressed in the previously created ejemplosSW folder.
All samples follow the same directory structure, as follows:
sampleSW/data/input
/output
/src
build.xml
The data folder contains the data required to run in input, that is, the files to be signed and verified, and in output the signatures carried out in the execution. The example code is in src and the build.xml file with which the sample can be compiled and run using the Apache Ant tool.
To conclude, the samples can be compiled and run once you have all the necessary files. To do so, two methods are explained below:
-
Apache Ant Tool
-
Eclipse IDE
|