loading class with getResource() gives different results