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
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
Related
I have a basic understanding of network programming but i have never had anything to do with USB ports.
This is what i am trying to achieve
I need to write a program in Java, to communicate to a device which is connected to USB port and then later send commands.
I tried terminal as follows earlier but it didn't quite work
ls -l /dev/tty.*
screen /dev/tty.usbserrial-FTYRDSX7 9600
The above didn't work out.
So if someone can just guide with what Java classes i should be looking into and if there are any APIs that should help me get started
Unless you're required to build it from the ground up, use a library such as usb4java (also here). Trying to manage it as a block device and interpreting whatever protocols etc., etc is not worth the effort unless there something very unique to your problem.
So i ended up using jssc which is much easier to use with strait forward syntax and methods
Please can you assist me on how to connect JAVA to IBM PCOMM and interact with its screen. Right now, I am just running IBM PCOMM using AutoHotKey (Run and SendInput), no API at all, just an automated keyboard input care of AHK script.
I am also thinking of writing AHK script to connect to IBM PCOMM and run it in my JAVA program as exe, but unfortunately, I don't know either how to write that script.
I am using Eclipse JUNO.
I'm also doing the same things like your. I'm using jacob - a com-java bridge component for java. I've just started my project for one week and the result I've got is quite fessible. Until know, I can wrap all the PCOMM com object by java and work with it properly. You can study jacob at this link: http://sourceforge.net/projects/jacob-project/ and danadler.com/jacob/ .
Well what I am trying to do, in the long run, is to change some LAN properties when the an ethernet cable is connected to a computer.
I want to run my Java program each time a LAN network is detected. I found a couple questions as to how to do this in C++, but nothing related to Java, specifically. Would this just involve the way I distribute my final application? As in, I could use Jar2Exe Wizard to package my Java program as a Windows service and then just figure out how to run that at startup. But is there any way to do this within the Java program itself?
Don't know what your specific need is but you could try this. This shows how to run windows commands from inside java so you wont have to create an external batch file.
How to Execute Windows Commands Using Java - Change Network Settings
Also check out this answer which talks about retrieving network name in java. then you can combine both!
How to get the wifi network interface name in java
I want to print using java through usb without driver in windows platform.I read about driver and get some help from this blog http://blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/ but still now it was not clear how to use WDDK and WSDK becasuse this tool dose not provide any ide along with this.I also try jsr80 and libusb but all of this are mainly for linux or need some manual installation actually I want to bypass them using directy usbprint.sys,is it possible to access this directly from java?
If someone have some idea about that please share it and also share some using guide about wddk or wsdk and how to use this from java application.
Greetings,
I need to port this Windows utility: http://solinker.com to Mac.
The app was written in C#, .NET 2.0.
The main requirement is:
The app should be able to talk with AppleScript to interact with Photoshop. The program is small and UI is simple so I could consider to fully rewritte the app.
Possible candidates are:
MonoMac
Unity 3D (seems it doesn't required to install the Mono)
XULRunner (Flickr Uploader written by XULR)
QT
Java (convert all the app to Java + 2 different connector to photoshop:
for Mac and for Win)
I would be appreciate for any advice!
I'm not experienced with others but can definitely suggest MonoMac. It looks and feels like any other Mac app while running on Mac. On the other hand, if the application was written with Visual Studio on Windows, it never properly works on MonoMac. So prefer MonoDevelop, if you go this route.
If you check the documentation for MonoMac, you will see they have a packager which bundles all dependencies with the final app. So, no need for a seperate Mono install:
http://www.mono-project.com/MonoMacPackager
As for AppleScript, MonoDevelop does some wrapping of AppleScript. You should take a look at their source:
https://github.com/mono/monodevelop/blob/master/main/src/addins/MacPlatform/MacInterop/AppleScript.cs
I would say MonoMac is your best approach.