Fedora (Linux) tomcat-juli problem

In case of problem: Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory To work it around, you need to add the tomcat-juli.jar to the run configuration class path. Here are the steps how to do it: 1. In Eclipse, Open the “Server” tab. 2. Double click on the “Tomcat6” entry to see the configuration. 3. Then click on… Continue reading

BASE64decode String in java

Input is base64 encoded string private String decodeBase64(String sInput){ String sReturn = “”;         BASE64Decoder decoder = new BASE64Decoder();         try {           byte[] decodedBytes = decoder.decodeBuffer(sInput);           sReturn = new String(decodedBytes);         } catch (IOException e) {… Continue reading