Allow Windows 7 To Open Jar Files

On my new Windows 7 desktop, I tried to open a .jar file, only to be rebuked. And lo, after some Googling, there is. Here’s how:

  1. Go to the run box and type in cmd. Instead of hitting Enter, use Ctrl + Shift + Enter.This will run the command prompt with Admin rights.
  2. A dialog box should pop up notifying you of what you’re doing and you have to confirm it. Annoying.
  3. Type this in to the command line: assoc .jar=CompressedFolder. Press Enter
  4. Profit!

There you have it kids. Windows 7 opens .jar files like they were .zip files.

 

GWT URL.decode causes UnsatisfiedLinkError

This is an easy error to get when you aren’t paying attention. What happened is you included com.google.gwt.http.client.URL on the server-side to try and decode an encoded URL. What you want to use is java.net.URLDecoder. Also related, the string is by default encoded UTF-8, so decode like this: String s = URLDecoder.decode(string, “UTF-8”);

Maybe someone else will find this instead of having to search for it.

Does GWT Support SimpleDateFormat?

No. At least not at the time of this post. I think there are a few projects around on Sourceforge or Google Code. I’d suggest using DateTimeFormat in the com.google.gwt.i18n.client package.

It took me a little Googling to figure this out, so maybe this post will help someone in the future.