简体   繁体   English

如何安装Commons Codec?

[英]How to install Commons Codec?

How can I install the commons codec? 如何安装公共编解码器? I've downloaded but I've searched online and couldn't find an answer to this. 我已下载,但我在网上搜索过,找不到答案。 I want to use the Base64 encoder and decoder. 我想使用Base64编码器和解码器。

Also 1 more question, if my code uses this codec, will other users that try to use my program require it too? 另外还有一个问题,如果我的代码使用此编解码器,其他尝试使用我的程序的用户是否也需要它? or is it just compiling? 还是只是编译?

Thanks 谢谢

For your second question, if some one else uses your code, and if your code internally uses the Base64, then just compiling won't help, you will have to supply the Base64 jar with your code as you code at runtime depends on the Base64 code. 对于第二个问题,如果其他人使用您的代码,并且如果您的代码在内部使用Base64,那么只是编译将无济于事,您将不得不为您的代码提供Base64 jar,因为您在运行时的代码取决于Base64码。

To your first question, in the project itself you can add the Base64 jar, and then try to execute the jar in a standalone mode. 对于您的第一个问题,在项目本身中您可以添加Base64 jar,然后尝试以独立模式执行jar。 There is a way to add the jar inside the jar, and then your code will use that jar internally. 有一种方法可以在jar中添加jar,然后你的代码将在内部使用该jar。

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

相关问题 如何为IntelliJ IDEA安装apache commons库? - How to install apache commons library for IntelliJ IDEA? 如何安装/使用 apache commons collection 4.4 - How to install/use apache commons collection 4.4 如何用org.apache.commons.codec.binary.Base64替换android.util.Base64? - How to replace android.util.Base64 by org.apache.commons.codec.binary.Base64? 如何使用org.apache.commons.codec.binary.base64对Java对象进行Base64编码? - How to Base64 encode a Java object using org.apache.commons.codec.binary.base64? 如何在 gradle Java 中升级 aws-sdk:ssm 使用的 commons-codec 1.11 - How to upgrade commons-codec 1.11 used by aws-sdk:ssm in gradle Java 如何正确使用org.apache.commons.codec.digest.Md5Crypt? - How do I properly use org.apache.commons.codec.digest.Md5Crypt? 如何将sun.misc.BASE64Encoder转换为org.apache.commons.codec.binary.Base64 - How to convert sun.misc.BASE64Encoder to org.apache.commons.codec.binary.Base64 如何使用 apache.commons.codec Base64 解密 Java 客户端中的字符串(在 .NET 中加密)? - How to decrypt string (encrypted in .NET) in Java client using apache.commons.codec Base64? Commons Codec Library Issue Android Studio - Commons Codec Library Issue Android Studio 适用于Commons Codec中的encodeBuffer方法的替换 - Suitable replacement for decodeBuffer Method in Commons Codec
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM