[英]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.