How to combine two Jar files

Sure, just extract the two jar files and recreate a new one $ mkdir tmp $ (cd tmp; unzip -uo ../jar1.jar) $ (cd tmp; unzip -uo ../jar2.jar) $ jar -cvf combined.jar -C tmp . The stuff with tmp ensures that the two existing jars are extracted into a clean directory and then the new one … Read more

-tsa or -tsacert timestamp for applet jar self-signed

The Java 7 release provides a (courtesy?) warning about something which has been in place for a decade… Trusted Timestamping was introducing in Java 5 (2004). The motivation was so that developers would not be forced “to re-sign deployed JAR files annually” when the certificates expired. → http://docs.oracle.com/javase/1.5.0/docs/guide/security/time-of-signing.html A URL-based Time Stamp Authority (TSA) is … Read more

.class vs .java

A .class file is a compiled .java file. .java is all text and is human readable. .class is binary (usually). You compile a java file into a class file by going to the command line, navigating to the .java file, and running javac “c:\the\path\to\your\file\yourFileName.java” You must have a java SDK installed on your computer (get … Read more

Where did all the java applets go? [closed]

I think Java applets were overshadowed by Flash and ActionScript (pun unintended), being much easier to use for what Java Applets were being used at the time (animations + stateful applications). Flash’s success in this respect in turn owes to its much smaller file sizes, as well as benefiting from the Sun vs. Microsoft suit … Read more

How do you debug Java Applets?

Aside from the obvious use of the Java console and the applet viewer, starting from Java 6 update 7, you can use the VisualVM that comes with the JDK (JDK_HOME/bin/visualvm). It allows you to view the stack traces of each thread and even view all object instances. AppletViewer is very handy, you can do a … Read more

Java Error: “Your security settings have blocked a local application from running”

After reading Java 7 Update 21 Security Improvements in Detail mention.. With the introduced changes it is most likely that no end-user is able to run your application when they are either self-signed or unsigned. ..I was wondering how this would go for loose class files – the ‘simplest’ applets of all. Local file system … Read more

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