Update Resource.java

I think the variable loader should be the system class loader, 'cause 
we have already failed to get the resource through other loaders.