I think you only have to match as many characters as you provide.. e.g. .startsWith(blah). so for all versions of windows you can say Windows" and it will match Windows 2000 Windows XP, etc.For resource loading and other issues see http://java.sun.com/products/javawebstart/faq.html