// using getResource URL url = this.getClass().getResource( "picture.gif" ); // or URL url = MyClass.class.getResource( "stuff.ser" ); // or URL url = MyApp.class.getClassLoader().getResource( "InWords.properties" );