简体   繁体   English

我如何在 Intellij 中运行 java 卡小程序?

[英]How i can run java card applet in Intellij?

I'm beginner in Java card SDK.I'm learning and also i found one simple example in github我是 Java 卡 SDK 的初学者。我正在学习,我还在 github 中找到了一个简单的例子

public class HelloWorld extends Applet {

protected HelloWorld() {
    register();
}

public static void install(byte[] bArray, short bOffset, byte bLength) {
    new HelloWorld();
}

/**
 * @noinspection UnusedDeclaration
 */
public void process(APDU apdu) {
    byte[] buffer = apdu.getBuffer();
    short lc = apdu.setIncomingAndReceive();
    apdu.setOutgoingAndSend(ISO7816.OFFSET_CDATA, lc);
}

} }

I'm using Intellij IDE.我正在使用 Intellij IDE。 My problem is that I don't know how I can configuration run/debug configuration?我的问题是我不知道如何配置运行/调试配置? Simple, I want to run my app.很简单,我想运行我的应用程序。 In eclipse everything is easy, but I don't like it在日食中一切都很容易,但我不喜欢它在此处输入图片说明

Thanks, everyone谢谢大家

You can download jCardSim and compile/link against that.您可以下载jCardSim并对其进行编译/链接。 That way you don't need a simulator setup.这样你就不需要模拟器设置。 To compile for Java Card itself after debugging, you can simply setup Oracle's Java Card development environment.要在调试后为 Java Card 本身进行编译,您可以简单地设置 Oracle 的 Java Card 开发环境。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM