导入Java类时出现问题

发布于 2024-10-04 08:34:31 字数 714 浏览 0 评论 0原文

我需要导入以下内容,但在黑莓中没有我需要的预定义导入。

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import javacard.framework.SystemException;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.kobjects.base64.Base64; 

所有这些都显示错误。

当我添加 jar6 库时,它没有显示任何错误,但打包失败。

我需要导入这些文件。

任何人都可以发布我如何导入这些文件。

提前谢谢你。

I need to import the fallowing,But in blackberry there is no predefined imports as i need.

import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

import javacard.framework.SystemException;

import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.SecretKey;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.kobjects.base64.Base64; 

all these shows error.

When i add jar6 library it does n't show any error but i got packing failed.

I need to import these files.

can any one please post how can i import these files.

Thank u in advance.

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

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

发布评论

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

评论(1

软甜啾 2024-10-11 08:34:31

BlackBerry 使用 J2ME,即 Java 1.3。您将无法使用 Java 6 类。相反,您应该查看 BlackBerry API。它有用于加密的类,但您需要重写代码才能使用它们。

BlackBerry uses J2ME which is Java 1.3. You won't be able to use Java 6 classes. Instead you should look at the BlackBerry API. It has classes for encryption but you'll need to rewrite your code to use them.

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