Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Detect USB signal

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Detect USB signal

    Hi, I just want to ask how to detect signal from usb port so that I will know if a usb flash drive is plugged-in?
    Also is there a way to run .jar application in a usb once it is plugged-in?

    Cross-posted: Detect USB port signal - Java Forums

    Hope someone can help me here.

    Thanks in advance


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,264
    Thanks
    176
    Thanked 821 Times in 764 Posts
    Blog Entries
    5

    Default Re: Detect USB signal

    I looked into this a while back and recall not having much success (and I never had the necessity to pursue it further). I do recall finding 3rd party jar libraries that could have been used but this was a while back (if I recall correctly the ones I saw functioned through JNI and seemed platform dependent). A bit antiquated, but take a look at this article: Access USB devices from Java applications.
    I'd be interested if you find a solution.

  3. #3
    Junior Member
    Join Date
    Dec 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Detect USB signal

    Thanks, I realized that I have to learn this jUSB first, I am new to java and it might take time before I can implement this. Temporarily, I use autorun.inf.

    Thanks again.

Similar Threads

  1. detect duplicated programs
    By pulsarsitra in forum Java Theory & Questions
    Replies: 0
    Last Post: January 13th, 2011, 10:54 AM
  2. Signal processing API.
    By ivanloes in forum Java Theory & Questions
    Replies: 4
    Last Post: December 18th, 2010, 04:56 PM
  3. How can I detect the end of a line in a file ?
    By lumpy in forum Java Theory & Questions
    Replies: 3
    Last Post: February 18th, 2010, 02:13 AM
  4. How to detect audio input from a telephone call?
    By ces_31 in forum Java Theory & Questions
    Replies: 0
    Last Post: August 12th, 2009, 12:45 AM
  5. How to display sound signal waveforms continously?
    By ces_31 in forum Java Theory & Questions
    Replies: 4
    Last Post: August 10th, 2009, 09:43 AM