In the previous blog post, JAVA card application development created the first applet, which introduced a project from scratch.
So, after we've built this project, there's only one application (an optional aid), and if I want this project to have multiple applications (with multiple aid options), I can choose PSE, choose Ppse, and have multiple aids in the project after initialization, so how do I add an aid to my projects?
1. In the existing project name, right-click, select "New", and then select "Java card Applet", such as 1.
Figure 1. New Applet
2. A dialog box will pop up and fill in the name of class. For example, I want to build QPBOC applications, such as 2.
Figure 2. Create a new class
3. Click Next and the Figure 3 dialog box pops up.
Figure 3: Input aid
4. Click Finish and we can see that the "Qpboc.java" has been added to the project as well as the relevant code. such as 4.
Figure 4: Project structure
5. At this time, we need to add our QPBOC application in the simulator, click the dropdown box next to the Debug icon (a green bug), you can see the Debug Configurations dialog box, such as 5.
Figure 5. Configuring the Debug Configuration
6. Click on the "Package Upload" tab in this dialog box and double-click on the "Testpackage" that has been built, the optional applet will pop up, such as 6, select Qpboc, click Apply, and click Debug.
Figure 6. Join the new aid
7. Jcop will run up and see our new QPBCO application, A00000000303, has become application:selectable. 7.
Figure 7. Jcop Run
8. At this point, you can send/send 00a4040006a00000000303 to feel it.
Description: "Java Card Application Development" series of blog is I in the process of Learning Java card record, there is a wrong place, please point out.