I try to change the font size of package explorer in Eclipse from menu Window → Preferences → General → Appearance, and I fail to change
Eclipse is using native Windows widgets and their settings can only be changed from Display Properties / Settings / Advanced / General properties tab. There you can change your screen DPI to alter font sizes.