0

Objective : I want the java project to connect to a mobile(android) hotspot.

I referred to WIFI - Scan and Connect using Java and tried using jwlanSacn lib but unfortunately it works only for 32 bit systems. This lib uses JNI.

Is there a way to connect to a mobile hotspot in java? Any libraries ? or can I create my own JNI code for it?

Also, referred to

WIFI - Scan and Connect using Java

Finding SSID of a wireless network with Java

I'm working on 64bit Windows.

I'm new in pure java programming. Please help!

Thanks

Community
  • 1
  • 1
Rachita Nanda
  • 4,509
  • 9
  • 42
  • 66

1 Answers1

0

You have to do it from the command line. You pretty much have to execute OS-specific instructions from your java program to command line using Runtime.getRuntime().exec(...) And then do some kind of parsing for the response you get. That's the idea.

Sorry I can't help more right now. I will update my answer as soon as I investigate this further

ThanosFisherman
  • 5,626
  • 12
  • 38
  • 63