Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Java - WIFI connection settings

  • 19-03-2010 01:14PM
    #1
    Registered Users, Registered Users 2 Posts: 821 ✭✭✭


    Hello,

    I have an app and I would like the user to be able to connect to a wireless network from it. It needs to be as simple as possible (i.e. display a list of available wireless networks, click one to connect to and enter the password - very like Windows "Wireless Network Connection" dialog).
    • Anybody know if there is a Java library/API related to WIFI?
    • Alternatively, I could use a command-line app with a few simple commands to achieve the above (call it from Java and parse the results - I know how to do this already).
    • Another option is to just open the Windows "Wireless Network Connection" dialog from my app but I can't even find a way to do that! Is there a command-line command or executable that can be called to open that dialog?
    I am using an ordinary PC and Windows XP. I have googled ways of doing all of the above but I'm stumped!

    Cheers,
    Brian


Comments

  • Registered Users, Registered Users 2, Paid Member Posts: 2,032 ✭✭✭lynchie


    There are no libraries I know of to do it as the establishing of a network connection is OS specific. I guess you could either use the command line route or alternatively write a dll to establish the connection etc and use JNI to build an API on top if it. I've done it before for launching RAS connections using those mobile dongles so I guess it should be possible for controlling the wireless connections.


  • Registered Users, Registered Users 2 Posts: 821 ✭✭✭Dr Pepper


    Thanks lynchie,

    I had a feeling it would be possible using dll's and JNI but that is kind of beyond the scope of what I wanted to do. Connecting to WIFI is not really a main function of the project, just a small feature of it and I didn't intend on using different languages and making a big, complicated (to me anyway!) facility for it. The command-line route would be fine but as yet I haven't found anything suitable.


Advertisement