Extracting .jar file with command line

From the docs: To extract the files from a jar file, use x, as in: To extract only certain files from a jar file, supply their filenames: The folder where jar is probably isn’t C:\Java for you, on my Windows partition it’s: Unless the location of jar is in your path environment variable, you’ll have to specify the full path/run the program from … Read more

JRE 1.7 – java version – returns: java/lang/NoClassDefFoundError: java/lang/Object

When running any java application, or just ‘java’, the jvm fails: Error occurred during initialization of VMjava/lang/NoClassDefFoundError: java/lang/Object Here is a list of wrong answers: The correct Java home directory, including the /bin directory, is on the global PATH JAVA_HOME is set correctly Executing the command java -fullversion works$ java -fullversion ./java full version “1.7.0_05-b05” The symbolic … Read more

Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The problem appears when your server has self signed certificate. To workaround it you can add this certificate to the list of trusted certificates of your JVM. In this article author describes how to fetch the certificate from your browser and add it to cacerts file of your JVM. You can either edit JAVA_HOME/jre/lib/security/cacerts file or run you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)