By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,791 Members | 1,314 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,791 IT Pros & Developers. It's quick & easy.

Programming hardware devices using java

100+
P: 126
I am a starter to hardware coding using java, Can somebody help to start with this, By letting me know with java platform to use(Java SE, Java EE, Java ME) and which libraries to use.
Jun 25 '13 #1
Share this Question
Share on Google+
4 Replies


Nepomuk
Expert 2.5K+
P: 3,112
Hardware programming and Java are two worlds that don't go together very often. This is because Java is designed to be platform independent; hardware however is by definition different on every platform.
There are some things you can do in this area though. They are limited but they exist. So here are some questions you'll have to answer before we can recommend anything specific:
  • Which OS are you using?
  • What kind of hardware are you trying to access?
  • Do you want to only read from the hardware or send it data too?
Generally speaking, Java ME is mostly just a reduced set of Java SE. It might give you some (very limited) control over the device you're using it on, I don't know. Java EE is a set of additional libraries for Java (though nothing hardware related as far as I know). So unless you want to program for mobile devices which support ME (which doesn't include most smartphones btw) you'll be using Java SE and maybe EE.
Jun 25 '13 #2

100+
P: 126
1. OS - Windows 7
2. Hardware - I will be using fingerprint module with UART interface
3. I need to do a 2 way communication

I heard some API's like JavaComm and RxTx are they of any use to my question?
Jun 25 '13 #3

Nepomuk
Expert 2.5K+
P: 3,112
Yes, those are the APIs I found too and from what I understand, they should be suited for a project like yours. JavaComm is from Oracle and should be well supported and cross platform. RxTx has been around for quite a while and is supposed to be pretty good. Which of the two is better suited for your project however I do not know.
Jun 26 '13 #4

100+
P: 126
Thanks for your reply Nepomuk:) i have successfully coded for the UART using JavaComm.
Jul 8 '13 #5

Post your reply

Sign in to post your reply or Sign up for a free account.