Need to write a client, which can scan the available WIFI networks and connects to best known using Java. This might be desktop client which does this job. Any pointers would be helpful and appreciate your response.
Asked
Active
Viewed 1.5k times
10
-
5I Don't understand your comment. Be nice. – user1686758 Sep 20 '12 at 22:49
-
1No rudeness intended, only a mildly humorous joke. Java is a proper name, so when written only the `J` should be capitalized. Writing it as "JAVA", in online etiquette, would be shouting. – Tim Bender Sep 21 '12 at 03:59
-
What's the deployment envrionment? Cross platform? – soulseekah Dec 24 '13 at 13:57
-
Do it in a native language if you cannot make do by invoking helper programs. – Thorbjørn Ravn Andersen Dec 30 '13 at 14:39
2 Answers
5
You'll have to rely on a JNI library since you can't access a wireless device directly in Java.
jWlanScan for Windows.

Jon Lin
- 142,182
- 29
- 220
- 220
-
Thank you for the response. Let me try that one and see. Appreciate your quick help. – user1686758 Sep 20 '12 at 19:04
-
Unfortunately its not working on my 64 bit machiene. Is there any other API? – user1686758 Sep 20 '12 at 22:43
-
@user1686758 Sorry, I've got nothin. JNI components this specific are probably hard to come by, Java being OS/Hardware independent and all. – Jon Lin Sep 20 '12 at 23:07
2
I suggest you to act upon your operating system. And for each of the supporting operating system try to analyse the results of the command lines needed to connect the wireless devices. It is quite straight forward and You will not have to work with JNI libraries.
For example for windows you can see the ones introduced here, here and here and for the linux it is still easier.

Johnny
- 1,509
- 5
- 25
- 38