Javax.usb api

Hi there, I am used to programming in java since some months but only with simple things. I need to communicate with a usb via my GUI. I found this websites for javax.usb, and also found the some tar files and zip files. http://sf.gds.tuwien.ac.at/j/ja/javax-usb/
Can somebody explain me how to implement this files and where will the files be stored in the system? I will greatlly appreciate if somebody can show me how the topology works and how many files i need to just get the data from usb into m system gui. I am looking for a common platform code if any out there.
thanks for the help...

Hi there, I am used to programming in java since some
months but only with simple things. I need to
communicate with a usb via my GUI. I found this
websites for javax.usb, and also found the some tar
files and zip files.
http://sf.gds.tuwien.ac.at/j/ja/javax-usb/
Can somebody explain me how to implement this files
and where will the files be stored in the system? I
will greatlly appreciate if somebody can show me how
the topology works and how many files i need to just
get the data from usb into m system gui. I am looking
for a common platform code if any out there.
thanks for the help...

Similar Messages

  • Error Installing javax.usb

    Hello
    I know that Javax.usb was not created by sun but I'm looking for a solution and it's my last chance.
    I'm trying to install Javax.usb, the installation goes well for the API and the Common RI. Things are going wrong with the Linux RI.
    I Have this message at compilation :
    [moi@eeePC javax-usb-ri-linux]$ ant compile
    Buildfile: build.xml
    compile:
         [echo] Compiling class files.
         [echo] Compiling JNI library.
    BUILD FAILED
    /home/moi/Bureau/javax-usb/javax-usb-ri-linux/build.xml:114: Problem: failed to create taskor type javah
    Cause: the class org.apache.tools.ant.taskdefs.optional.Javah was not found.
            This looks like one of Ant's optional components.
    Action: Check that the appropriate optional JAR exists in
            -/usr/share/ant/lib
            -/home/moi/.ant/lib
            -a directory added on the command line with the -lib argument
    Do not panic, this is a common problem.
    The commonest cause is a missing JAR.
    This is not a bug; it is a configuration problem
    Total time: 1 secondI understand That this is an ANT configuration problem but after much googling I found the class that lacks with a complete Jar file.
    I copied the Jar File and its uncompressed version every on the system
    in /usr/share/ant/lib,/home/moi/.ant/lib and also in many directories. According to the error, it should have been enough but it is not.
    Can someone help me please ?
    System Information :
    ANT : Apache Ant version 1.7.1 compiled on August 2 2008
    Linux : Linux eeePC 2.6.27-desktop-0.rc8.2mnb #1 SMP Thu Oct 2 06:11:56 EDT 2008 i686 Intel(R) Atom(TM) CPU N270 @ 1.60GHz GNU/Linux

    Does anyone have an Idea ?

  • USB API

    Is there any 'standard' implementation of JSR80 for 64 bit Linux. Is the code at javax-usb.org widely used, and does it work in this environment. Is there now anything in the core API.
    Edited by: hamiljf on 07-Nov-2010 08:19

    I just did a quick google for "java usb" and it looks like there are a lot of APIs and tutorials. Here is one that looks promising, and it looks like it works on Windows: jUSB.
    Hope that helps!
    - Tomas
    My Blog - [tea time with meowkins|http://blogs.windwardreports.com/tomasr]

  • USB API?  Solaris 8 or in 9?

    I am looking for any information on the USB api for Solaris. In the early docs on Solaris 8, it was mentioned that the api would be in a future release, but I cannot find it. Does anyone have information about its inclusion (or exclusion) in Solaris 8?
    Thanks in advance,
    John

    Have a look at the manpages (in s8) for uhci, ohci, hubd, usb_mid, hid and scsa2usb. The document "Writing Device Drivers" (see docs.sun.com) is also useful, as is the documentation on USB located at http://www.usb.org/developers/home.php3

  • Trying to use javax comm api in Windows Environment

    I am working on developing a module to dial a phone number in a Windows environment. This is to test a voicemail connection so it isn't, necessarily, calling a modem.
    A couple of questions:
    1) I found the javax comm api but it appears Sun has only provided a Solaris and Linux version - where would I find a Windows version?
    2) I was planning on dialing a modem with the voicemail phone number (programmatically, of course). I, then, want to recognize response and react to it - possibly stopping only with seeing that the phone number answered (since I don't want to write voice recognition software). Am I on the right track?
    Ed

    I don't know of any devices named "/dev/term/a" - and that's both Linux and Solaris.

  • Properties File: javax.usb ?

    Hi Guys,
    I'm sure you've all heard this a million times, but I'm hung up on it. I'm trying to learn about javax.usb, and keep getting this exception:javax.usb.UsbException: Properties file javax.usb.properties not found.And I swear to God guys, it's there (i know i'm wrong though).
    This is what I've added to my buildpath:
    -javax-usb_1.0.1.zip
    -javax-usb-ri_1.0.1.zip
    -jsr80-1.0.1.jar
    -jsr80_ri-1.0.1.jar
    -javax-usb-tck_1.0.1.zip
    Take a look for yourself: http://img.photobucket.com/albums/v335/shlumph/referencedLibraries.jpg
    How come the compiler can't see that the javax.usb.properties file is there? What is the best way to fix this?
    If it helps, here is my source code:
    import java.io.UnsupportedEncodingException;
    import java.util.*;
    import javax.usb.*;
    public class USBListener {
         public static void main(String[] args) {
              try{
                   UsbServices services = UsbHostManager.getUsbServices();
                   UsbHub root = services.getRootUsbHub();
                   listDevices(root);
              } catch (Exception e) {
                   System.out.println(e);
         public static void listDevices(UsbHub hub) throws UnsupportedEncodingException, UsbException {
              List devices = hub.getAttachedUsbDevices();
              Iterator iterator = devices.iterator();
              while(iterator.hasNext()) {
                   UsbDevice device = (UsbDevice)iterator.next();
                   describe(device);
                   if(device.isUsbHub()) {
                        System.out.println("is hub");
         public static void describe(UsbDevice device)
              throws UnsupportedEncodingException, UsbException {
              UsbDeviceDescriptor descriptor = device.getUsbDeviceDescriptor();
              byte manufacturerCode = descriptor.iManufacturer();
              System.out.println("Manufacturer index: " + manufacturerCode);
              System.out.println("Manufacturer String: " + device.getString(manufacturerCode));
              System.out.println("USB version: " + decodeBCD(descriptor.bcdUSB()));
              System.out.println("Maximum control packet size: " + descriptor.bMaxPacketSize0());
         public static String decodeBCD(short bcd) {
              int upper = (0xFF00 & bcd) >> 8;
              int middle = (0xF0 & bcd) >> 4;
              int lower = 0x0F & bcd;
              return upper + "." + middle + "." + lower;
    }

    Hi,
    Probably you did not set properly your classpath. Read the following FAQ:
    http://javax-usb.org/faq.html#get_properties_file
    http://javax-usb.org/faq.html#what_is_properties_file
    http://javax-usb.org/faq.html#linux_imp_jar_file
    http://javax-usb.org/faq.html#still_doesnt_work
    Note that for Windows: "This is a pre-alpha Windows implementation (it does not work, it needs a kernel driver)."
    http://javax-usb.cvs.sourceforge.net/javax-usb/javax-usb-ri-windows/README?view=markup
    Mimo

  • Javax.usb

    Hello
    I'm planning to write an application to connect to a development board via USB connection.
    After google-ing i ended up trying to install javax-usb.
    Downloaded the 3 packages:
         javax-usb_1.0.2
    javax-usb-ri_1.0.2
         javax-usb-ri-linux_1.0.2
    javax-usb builds ok. I add the path to "/lib/jsr80.jar" to my CLASSPATH.
    when I try to build the second one, javax-usb-ri_1.0.2, I get lots of errors:
    clean:
    [echo] Cleaning everything.
    compile:
    [echo] Compiling class files.
    [javac] Compiling 50 source files to /home/iggy/Documents/javax-usb-ri/src
    [javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:12: package javax.usb does not exist
    [javac] import javax.usb.*;
    [javac] ^
    [javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:18: cannot find symbol
    [javac] symbol: class UsbInterfacePolicy
    [javac] public class DefaultUsbInterfacePolicy implements UsbInterfacePolicy
    [javac] ^
    [javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java:37: cannot find symbol
    [javac] symbol : class UsbInterface
    [javac] location: class com.ibm.jusb.DefaultUsbInterfacePolicy
    [javac]      public boolean forceClaim(UsbInterface usbInterface) { return false; }
    [javac]      ^
    [javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/UsbConfigurationDescriptorImp.java:12: package javax.usb does not exist
    [javac] import javax.usb.UsbConfigurationDescriptor;
    [javac] ^
    [javac] /home/iggy/Documents/javax-usb-ri/src/com/ibm/jusb/UsbConfigurationDescriptorImp.java:13: package javax.usb.util does not exist
    [javac] import javax.usb.util.UsbUtil;
    [javac] ^
    etc..
    I guess it doesn't seem to find the javax.usb library.Or...???
    the third does't build either...naturally.
    So what am I doing wrong?I'm using Ubuntu 8.10.
    Is there any other way to make buld I/O over USB (besides using JNI)?

    for jUSB on windows you should read the manual that came with it to enable the specific device as a JUSB device ( the appendixes i think ), it involves going into your device manager i think ( the instructions should say and be simple enough ), i don't like it because it defeats the purpose of being able to plug the device into any usb port and doing a search for it from there and then being able to communicate with it, it also prevents the original app. from communicating with it successfully through the port you configured the device for
    by the way the device i used the java usb packages for is the vernier go temp. sensor =) (developing a program to display and record data from it while using it in my chemistry labs which would beat the hell out of standing, stirring, and measuring temp. with an alcohol thermometer to the second decimal place every 15 seconds for about 30 minutes for about 6 rounds with an avg. temp. rate change of about 1 deg. per 80 secs. =( )
    Edited by: scphan on Mar 19, 2009 3:40 PM

  • Linux, Java and Javax.usb

    Hello,
    I've spent 3 days trying to install the javax.usb package on my linux with the classical package and I finally found the javax.usb RPMs. I installed them and every thing seemed fine until I tried to run a java program.
    Now I'm unable to run any program.
    Completion does not work anymore e.g. when I'm in a directory with a .class file, the completion is unable to find it.
    That would not be a real problem but when I try to run a java program, I always end up with a ClassNotFoundException. Does anyone have a clue about what is happening to me.
    System : Mandriva 2009.0
    Linux Kernel 2.6

    Packages that begin with "java" are base packages.
    Packages that begin with "javax" are extensions to
    Java (hence the "x").
    AWT was the first UI package in Java. Swing came
    later and was added as an extension.
    %aha, right. cheers

  • Javax Comm API on linux

    Hi,
    I am using javax comm API on linux. I am using RXTX comm API release 1.4 that uses gnu.io.RXTXCommDriver on J2ME Personal Profile Runtime Environment for x86 Linux Version 1.0.
    When I try to open a serial port, I get javax.comm.NoSuchPortException. What could be the problem? Does the cvm not support comm API. Is there any alternate way?

    I am looking for one too.. i figured better would be to use JNI classes... but i havent yet implemented it.. mebbe that will cause even more problemos..
    please post here if you find smthing

  • Using javax.usb to read usb using java

    hai friends
    iam trying to read data from usb and i had tried over javax,usb package it asks for the implemntation og javax.usb.UsbServices interface. wt is the solution
    with regards hbk

    I want to do it in windows

  • Javax usb exception

    Hi All - I'm kinda new at this and looking for some help. I successfully compiled the program below to enumerate the USB bus, but when I run the program I get the errors (listed at the end). Where did I go wrong? Any help would much appreciated. Thank you
    ~~~~~~~~~~~~~
    import javax.usb.*;
    import java.util.List;
    public class TraverseUSB {
    public static void main(String argv[]) {
    try {
    // Access the system USB services, and access to the root
    // hub. Then traverse through the root hub.
    UsbServices services = UsbHostManager.getUsbServices();
    UsbHub rootHub = services.getRootUsbHub();
    traverse(rootHub);
    } catch (Exception e) {}
    public static void traverse(UsbDevice device) {
    if (device.isUsbHub()) {
    // This is a USB Hub, traverse through the hub.
    List attachedDevices =
    ((UsbHub) device).getAttachedUsbDevices();
    for (int i=0; i<attachedDevices.size(); i++) {
    traverse((UsbDevice) attachedDevices.get(i));
    else {
    // This is a USB function, not a hub.
    // Do something.
    ~~~~~~~~~~~~~~
    # java TraverseUSB
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/usb/UsbDevice
    Caused by: java.lang.ClassNotFoundException: javax.usb.UsbDevice
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
    Could not find the main class: TraverseUSB. Program will exit.
    #

    You've probably forgotten to set the classpath.

  • Javax.usb problem

    i would like to use window xp to test this program
    import javax.usb.*;
    import java.util.List;
    public class TraverseUSB
    public static void main(String argv[])
    try
    // Access the system USB services, and access to the root
    // hub. Then traverse through the root hub.
    UsbServices services = UsbHostManager.getUsbServices();
    UsbHub rootHub = services.getRootUsbHub();
    traverse(rootHub);
    } catch (Exception e) {}
    public static void traverse(UsbDevice device)
    if (device.isUsbHub())
    // This is a USB Hub, traverse through the hub.
    List attachedDevices = ((UsbHub) device).getAttachedUsbDevices();
    for (int i=0; i<attachedDevices.size(); i++)
    traverse((UsbDevice) attachedDevices.get(i));
    else
    // This is a USB function, not a hub.
    // Do something.
    error message
    C:\TraverseUSB.java:1: package javax.usb does not exist
    import javax.usb.*;
    ^
    C:\TraverseUSB.java:18: cannot resolve symbol
    symbol : class UsbDevice
    location: class TraverseUSB
    public static void traverse(UsbDevice device)
    ^
    C:\TraverseUSB.java:12: cannot resolve symbol
    symbol : class UsbServices
    location: class TraverseUSB
    UsbServices services = UsbHostManager.getUsbServices();
    ^
    C:\TraverseUSB.java:12: cannot resolve symbol
    symbol : variable UsbHostManager
    location: class TraverseUSB
    UsbServices services = UsbHostManager.getUsbServices();
    ^
    C:\TraverseUSB.java:13: cannot resolve symbol
    symbol : class UsbHub
    location: class TraverseUSB
    UsbHub rootHub = services.getRootUsbHub();
    ^
    C:\TraverseUSB.java:23: cannot resolve symbol
    symbol : class UsbHub
    location: class TraverseUSB
    List attachedDevices = ((UsbHub) device).getAttachedUsbDevices();
    ^
    C:\TraverseUSB.java:26: cannot resolve symbol
    symbol : class UsbDevice
    location: class TraverseUSB
    traverse((UsbDevice) attachedDevices.get(i));
    ^
    7 errors
    Tool completed with exit code 1
    also i would like to ask when i run this program, what package do it use. and how can i run this program.

    Hi, i've tried this code as well.. i manage to solve your error, but i cant get it to run properly.
    meaning, the program cant read the device at all. i also had teh same code as you, i got it from somewhere, but it don't seem to work.. can anyone help me?
    System.out.println("hello");
    UsbServices services = UsbHostManager.getUsbServices();
    System.out.println("hello1");
    UsbHub rootHub = services.getRootUsbHub();
    System.out.println("hello2");
    traverse(rootHub);
    System.out.println("hello3");
    the output is only hello.
    so i don't know what is wrong.. anyone any idea?
    download link: [http://sourceforge.net/project/showfiles.php?group_id=21114]

  • Problem using Javax.Mail API

    Hi Experts,
    I am using Javax.mail API to send an email through java application. But i am facing an issue when i am deploying the java application in SAP WAS.
    I have assigned values in SMTP Host ,Port, and InternetAddress and deployed to WAS. But when i deploy this java class again in WAS with changing the values for SMTP Host ,Port and InternetAddress and putting in Properties object ,its always picking the values set at first time.
    Can anyone tell me whats wrong with following code .
    Properties prpt = new Properties();
    if (host == null)
    host=token[0];
    prpt.put("mail.smtp.host",host);
    prpt.put("mail.smtp.sendpartial", "true");
    if (port == null)
    port=token[1];
    prpt.put("mail.smtp.port", port);
    Session session1=Session.getDefaultInstance(prpt, null);
    MimeMessage message=new MimeMessage(session1);
    message.setFrom(new InternetAddress(emailId"));
    Thanks in advance.

    Hi
    I hope follow similar answered thread  will help you.
    1. [Javamail Client Service   |Javamail Client Service;
    2.[Sending Email   |Sending Email;
    Best Regard
    Satish Kumar

  • Javax.usb.properties..where do I get it from?!

    Hello,
    I'm trying to make a lil application that would access a blood pressure monitor via usb..
    I keep getting the javax.usb.properties file not found, like lots of people are, but..I can't even find that file so I can add it to the CLASSPATH!
    I'm using linux..I downloaded the .jar file with the 'common implementation' and added it to the project..but it's not workign and I have no clue where to find that file..
    I'm sorry, I'm sort of new to this whole thing..so the question is prolly stupid..
    thanks,
    Leena

    Trial versions require no serial number. They run for 30 days without one.
    Mylenium

  • Javax comm api

    hi all,
    I tend to install the javax comm api on my windows98 se but it seem that I cant find the win32com.dll in the unzipped file.
    I downloaded the javax.comm 3.0, update 1 for Linux plateform, since there is no version for the windows.
    I have tried to enable the view every folder in my view tool but cant seem to work, I still cant see the win32com.dll file.
    Regards,
    Rejina Choi

    hi , I having problem downloading this file ""Comm3.0_u1_linux.zip""" and I need it urgently could someone give me a link where I can download it. Sun say that "Product Not Found The product you requested is not available at this time".

Maybe you are looking for

  • Mac office 2008......

    Hey all, i'm just about to buy office 2004 for my macbook...can anyone explain what the difference with the office 2008 that was announced today??i basically just need it for word(writing essays) and powerpoint(class presentations)but at the same tim

  • What modifications are required to make a servlet support SSL data encrypti

    Hi, What modifications are required to make a servlet support SSL data encryption? --kumar                                                                                                                                                                

  • Is it all over for my iBook?

    Hi, Last night, while trying to get my mail, my iBook stopped responding and, when I tried to reboot, it never made it to the log in screen. So I booted from the install cd and ran the disk utility. It told me that my hard disk was failing but not co

  • Check print with 2 invoice

    hi all, can anyone tell me how to print check's manually? and also how to allocate discount on an invoice? thanks, and will assign point for sure.

  • ORA-01727 during impdp transportable datafiles:numeric precision specifier

    I started impdp the rman converted the datafiles into tartget and got error on one of the table: ORA-01727: numeric precision specifier is out of range 1 to 38 I tried to fix it by create the table definition by change several columns number (126) to