Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why java unknown: import org.apache.commons.codec.binary.Base64;? [closed]

I am trying to replicate what I saw in this video:

While coding I am unable to import Base64 class, and got this error: import org.apache.commons.codec.binary.Base64; but got an error, saying java.lang.ClassNotFoundException unknown apache.commons.codec.binary.Base64

How can I upload the needed library?

Thank you

like image 872
Dominik Avatar asked Aug 22 '26 20:08

Dominik


1 Answers

You need to add the Apache Commons Codec library to your project. You either need to download the *.jar file and add it to the project folder and project configuration or you let your build processor automatically download it.

See https://mvnrepository.com/artifact/commons-codec/commons-codec/1.9 Latest is version 1.15

This website provides a download link for the *.jar file as well as configuration settings for different build processors (Maven, Gradle, ...)

like image 185
Stefan Avatar answered Aug 25 '26 09:08

Stefan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!