import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import org.apache.log4j.Logger;
+
import fr.gouv.finances.dgfip.xemelios.common.ToolException;
public class Jnideps {
+
+ private static final Logger LOGGER = Logger.getLogger(Jnideps.class);
+
public static Object invoke(final String Sclass, final String Smethod, final Class SmethodParams[], final Object params[]) throws ToolException {
Class classe;
try {
if (oVal instanceof String) {
}
} catch (final ToolException e) {
- System.err.println(e);
+ LOGGER.error(e);
}
try {
final Object oVal = invoke("RegAccess", "getRegistryEntry", new Class[] { String.class }, new Object[] { "HKEY_LOCAL_MACHINE\\SOFTWARE\\LOTUS\\COMPANY" });
if (oVal instanceof String) {
}
} catch (final ToolException e) {
- System.err.println(e);
+ LOGGER.error(e);
}
try {
final String sVal = invoke("RegAccess", "getRegistryEntry", "HKEY_CLASSES_ROOT\\HTTP\\SHELL\\OPEN\\COMMAND");
} catch (final ToolException e) {
- System.err.println(e);
+ LOGGER.error(e);
}
}