File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Books On Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Books On Java" Watch "Books On Java" New topic

Books On Java

Anchal Bhargava

Joined: Jul 22, 2012
Posts: 6
I am working on java for past two years, & I have a good understanding of its core concepts. But Now I want to go ahead and learn some advance features like how could I connect any hardware device(usb etc) to my program. So could anyone suggest me any good book on topics like that.

LQ McDonald III

Joined: Aug 01, 2012
Posts: 10

I don't know exactly what you are speaking to here but I will suggest the book of books for java programmers. Effective Java by Joshua Bloch. I am sure it has been recommended a million times here but a million and one couldn't hurt if it get's another reader.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 46375
You won’t find USB devices in Effective Java. But you will find why it is recommended so often
Isn’t connection of devices via a USB done by the operating system?
Stevens Miller

Joined: Jul 26, 2012
Posts: 858

I was interested, about a year ago, in how to read game controllers attached via USB with Java. That was when I found out about something called "JInput," that might interest you. Search for it on Google and you'll get all you need.

Historically, it appears that JInput was born when someone else needed to read a game controller, and found out that Java's commitment to platform-independence meant (as of when JInput was created, anyway) it couldn't give you direct access to controllers (I guess because these things tend to be platform-specific).

An irony, imho, of platform-independence is that some of the things you want to do in Java will force you to write native code, and to use the Java Native Interface. Thus, you will be able to write your application in Java, but only on machines where you have access to a native implementation of whatever platform-specific resources you want to use. For example, I've been writing a bunch of stuff that uses the Windows DirectShow API. My application is in Java, but it calls a lot of native methods I wrote in C++, since there's no other way to call the DirectShow API routines. (There's a library out there that does this, but it does nothing to hide DirectShow from the Java user, which means the code is as non-portable as it could be; I wanted something with at least the potential to move to a non-Windows platform someday.)

JInput is, I believe, an open source project. Maybe there will be something there to help you.

In the other disciplines, we rise by standing on each others' shoulders. In computer science, we do it by standing on each others' toes.
I agree. Here's the link:
subject: Books On Java
It's not a secret anymore!