I want to list all the wireless networks in range using Java. The application needs to be platform-independent, i.e., it should work on both Windows and Linux. I found answers listing different methods for different operating systems for the same. Is there a way in which this can be done directly in Java regardless of the operating system being used?
For Windows, you can use jWlanScan. However, you may need to implement your own JNI wrapper for OSes.