Posts Tagged ‘zip’

One more strange bug

Friday, November 28th, 2008

I’ve noticed that all Java applications on my machine are slowing down a lot. But, when I my brand-new and self-made budget application freezes while doing a “new JFileChooser()”, this really pi**es me off. Asking Google, I found another weird bug: when your Windows Desktop has a lot of ZIP files, Java will implicity use Windows “zip folder” feature.

You can also blame Microsoft, because Win32ShellFolder.isDirectory() returns “true” (in W32API terms) when checking zip files. Don’t you love proprietary API?

Workarounds:

  1. Clean your Desktop
  2. If you are as lazy as me, you can disable “zip folder” with:
    regsvr32 /u %windir%\system32\zipfldr.dll