This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Books On Java" Watch "Books On Java" New topic
Author

Books On Java

Anchal Bhargava
Greenhorn

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.

Thanks
LQ McDonald III
Greenhorn

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.

http://www.amazon.com/Effective-Java-Edition-Joshua-Bloch/dp/0321356683/ref=sr_1_1?ie=UTF8&qid=1344101481&sr=8-1&keywords=effective+java
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38441
    
  23
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
Ranch Hand

Joined: Jul 26, 2012
Posts: 523
    
    3

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Books On Java