Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

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

like image 879
Cody Avatar asked Sep 10 '26 23:09

Cody


1 Answers

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.

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. There is a way to add the jar inside the jar, and then your code will use that jar internally.

like image 179
M.J. Avatar answered Sep 12 '26 12:09

M.J.