javax.smartcardio - javadocs

发布于 2024-11-10 19:00:32 字数 479 浏览 4 评论 0原文

我正在学习 javax.smartcardio 课程。我正在使用 eclipse 3.6 并且我有 JDK 6 SE。我可以使用语句 import javax.smartcardio.* 或其任何单独的类,只要我更改首选项以警告或忽略禁止的引用。

我在 Java SE 6< 的标准文档中没有看到任何关于 javax.smartcardio 的提及/a> 并且 eclipse 中没有弹出 javadoc 帮助。我在此处找到了文档。

有没有办法将 Eclipse 链接到 smartcardio 的 javadoc?

I'm studying the javax.smartcardio classes. I'm using eclipse 3.6 and I have JDK 6 SE. I can use the statement import javax.smartcardio.* or any of its individual classes, as long as I change preferences to warn or ignore forbidden references.

I don't see any mention of javax.smartcardio in the standard documentation at Java SE 6
and no javadoc help pops up in eclipse. I have found docs here.

Is there a way of linking Eclipse to the javadocs for smartcardio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

岁吢 2024-11-17 19:00:32

我找到了一个关于它的网络日志(Konstantin Flitschew 博客(德语))。它是德语,但它对我有用,所以我在这里给出一个简短的翻译:

  1. 创建一个java项目或打开一个现有项目
  2. 右键单击该项目并打开属性对话框
  3. 选择构建路径->;库选项卡并展开“JRE System Library”树
  4. 选择条目“访问规则”并按右侧的“编辑”按钮
  5. 您可以使用“添加”按钮应用规则:将下拉列表设置为“可访问”并输入值“javax/smartcardio/**”

通过此设置,我能够访问 javax.smartcardio 的类。

I found a WebLog about it (Konstantin Flitschew WebLog (german)). It's in german but it worked for me, so I give a short translation here:

  1. create a java project or open an existing project
  2. right-click the project and open the properties dialog
  3. select build path -> libraries tab and unfold the "JRE System Library" tree
  4. select the entry "Access Rules" and push the "edit" button on the right
  5. you can apply a rule with the "add" button: set the drop down to "accessible" and enter the value “javax/smartcardio/**”

With this setting I was able to access the classes of javax.smartcardio.

夕嗳→ 2024-11-17 19:00:32

我当时曾多次要求 Sun 将 javax.smartcardio 包含在文档中,但他们一直拒绝。现在,Windows 的 64 位 Java 版本 6/7 似乎没有 javax.smartcardio,并且访问规则排除了直接使用它的可能性。这很奇怪,因为 javax.smartcardio 似乎是一个接受的 JSR

Sun 和 Oracle 在安全 API 方面并没有真正进行良好的沟通。它们的设计相对较好,但缺乏支持,并且确实引入了一些突然的功能。

[编辑]

虽然 javax.smartcardio 包是一个被接受的 JSR,但 Java 6 和 7 SE 的总括 JSR 不包含它。请参阅 java_se-fr-spec.zip了解更多信息(见下文)。 因此,javacardx.smartcardio不是 Java SE 标准 API 的一部分。现在,即使如果< /em> 它存在。并且您无法添加自己的版本,因为它可能存在于特定版本中。您可以使用 Eclipse 访问规则来启用 javax.smartcardio 并从“问题视图”中删除访问冲突。

Oracle 的 Java 8 确实包含一个 javax.smartcardio 实现。您可能仍需要配置对其的访问。

JSR 268(Java 智能卡 I/O API)不会包含在内,因为
JSR 270 专家组得出的结论是,它不足以
对 Java SE 6 时间框架的广泛兴趣。

I've asked Sun back in the day multiple times to include the javax.smartcardio in the documentation, but they have refused all the times. Now it seems that 64 bit Java version 6/7 for Windows do not have javax.smartcardio, and that the access rules rule out using it directly. This is pretty strange as javax.smartcardio seems to be an accepted JSR.

Sun and Oracle don't really communicate well regarding security API's. They are relatively well designed, but the support is lacking, and they do introduce features out of the blue.

[EDIT]

Although the javax.smartcardio package is an accepted JSR, the umbrella JSR's for Java 6 and 7 SE don't include it. See java_se-fr-spec.zip for more information (see below). So javacardx.smartcardio it is not part of the Java SE standard API. Nowadays you may have trouble accessing the API even if it is present. And you cannot add your own as it may be present for a particular edition. You can use Eclipse access rules to enable javax.smartcardio and remove access violations from your "Problem view".

Java 8 from Oracle does include an javax.smartcardio implementation. You may still have to configure access to it.

JSR 268, the Java Smart-Card I/O API, will not be included because the
JSR 270 Expert Group concluded that it would not be of sufficiently
wide interest in the Java SE 6 time frame.

享受孤独 2024-11-17 19:00:32

Oracle 的 JDK 根本不包含 javax.smartcardio 的 javadoc。请改用OpenJDK

https://adoptopenjdk.net/ 安装 OpenJDK,然后使用 Window ->; 将其添加到 Eclipse 中。首选项-> Java->安装的 JRE(在 Windows 中,您需要的路径类似于 C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot)。结果:

“截图”

Oracle's JDK does not contain the javadoc for javax.smartcardio at all. Use OpenJDK instead.

Install OpenJDK from https://adoptopenjdk.net/, then add it in Eclipse using Window -> Preferences -> Java -> Installed JREs (in Windows the path you need looks like C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot). The result:

screenshot

尐籹人 2024-11-17 19:00:32

我的情况和你一样,但后来我发现了这个 http://intelligenzija.net/?q =节点/1
基本上,您需要在 IDE 中为这些类设置访问规则,以便可以使用它们。

I was in the same situation as you were but then I found this http://intelligenzija.net/?q=node/1
Basically you need to set Access rules for these classes in the IDE so you can use them.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文