OrangePi Zero is below 10$ ($7 costs 256MB version) and has WiFi. Personally using OPI One with ethernet, though so not tested by me but 99% or more it works. And try with Oracle Java where possible. OpenJDK is somehow worse - less responsive web interface, some errors or warnings… but works too.