Hi Joan

It's better to not move the src files from one module to another. Untar 
the files again and start over.

javax-usb worked OK for you. As a result it creates javax-usb/lib/jsr80.jar

javax-usb-ri didn't work, presumably because it failed to find 
jsr80.jar. Look to the ant file for that module. 
(javax-usb-ri/build.xml). It assumes the location of jsr80.jar as 
${basedir}../javax-usb/lib/ (i.e. property "compile.classpath"). This 
means, you need to execute ant in the same directory as the build.xml 
file, otherwise the relative path to jsr80.jar may not resolve.

If you are running ant through netbeans, it is possible that ${basedir} 
(i.e. the current working directory) is set to the location of your 
project and not the module.

See if you can run ant from the terminal rather than Netbeans. It may 
make things easier for you.

Jeremy




Joan Pachón Quetglas wrote:
> Ok, sorry for my first explanation.
> 
> I've read the FAQ carefully and It means that I need mount the "usbfs" 
> filesystem in my linux OS (Ubuntu x64) and I need three .jar compiled 
> files in my java's classpath (/usr/lib/jvm/jdk1.*** ) to develop any USB 
> application with Netbeans.
> 
> First of all I have mounted the "usbfs" in "fstab" with "rw" permissions 
> as the FAQ tells and It looks that works correctly.
> 
> Then, once I've downloaded and extracted the source tarballs I have 3 
> directories: "javax-usb" & "javax-usb-ri" & "javax-usb-ri-linux", so I 
> open a shell and I'm going to the first directory (javax-usb) and I 
> write "ant all -l errors", It generates a text file with a lot of warnings
> (1. WARNING in .../javax-usb/src/javax/usb/UsbAbortException.java (at 
> line 19)
>     [javac]     public class UsbAbortException extends UsbException
>     [javac]                  ^^^^^^^^^^^^^^^^^
>     [javac] The serializable class UsbAbortException does not declare a 
> static final serialVersionUID field of type long...)
> but at the final of the page there is a following text "BUILD 
> SUCCESSFULL" and it creates the jsr80.jar file.
> 
> Ok then, I'm going to the second directory (javax-usb-ri) and I make the 
> same process and the error file informs me the following:
> (1. ERROR in 
> /home/cantovell/jsr80/javax-usb-ri/src/com/ibm/jusb/DefaultUsbInterfacePolicy.java
>  
> (at line 12)
>     [javac]     import javax.usb.*;
>     [javac]            ^^^^^^^^^
>     [javac] The import javax.usb cannot be resolved...)
> well, I put the "javax-usb/src/javax" directory in "javax-usb-ri/src" 
> and I compile again and It generates a text file with a lot of warnings 
> but it creates the .jar file too.
> 
> But in the last directory I can get no the .jar file. I put 
> "javax-usb/src/javax" in "javaxusb-ri-linux/src" and I put 
> "javax-usb/src/javax/usb/util/" in 
> "javax-usb-ri-linux/src/com/ibm/jusb/", I compile and the error file says:
> (1. ERROR in 
> /home/cantovell/jsr80/javax-usb-ri-linux/src/com/ibm/jusb/os/linux/JavaxUsb.java
>  
> (at line 168)
>     [javac]     private static UsbHubImp createUsbHubImp( String key, 
> int maxPorts )
>     [javac]                    ^^^^^^^^^
>     [javac] UsbHubImp cannot be resolved to a type...)
> 
> Thanks for all. Regard from Majorca island.
> 
> 2008/9/16 Dan Streetman <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> 
>     Think you'll need to provide a bit more details than
>     "javax-usb-ri-linux is not compiled successfully."
> 
>     Don't forget to read the FAQ too.
>     http://javax-usb.org/faq.html
> 
>     On Mon, Sep 15, 2008 at 7:25 PM, Joan Pachón Quetglas
>     <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>      > I'm trying to compile the three modules with "ant" command but I
>     have some
>      > problems:
>      >
>      > - The first (javax-usb) is compiled successfully with the comand
>     "ant all".
>      >
>      > - The second (javax-usb-ri) is compiled successfully if I put the
>      > "../src/javax" directory from the first packet in
>     ../javax-usb-ri/src/
>      >
>      > - And the last one "javax-usb-ri-linux" is not compiled successfully.
>      >
>      > Somebody can help me?
>      >
>      > PD: Sorry for my bad english.
>      >
>      >
>     -------------------------------------------------------------------------
>      > This SF.Net email is sponsored by the Moblin Your Move
>     Developer's challenge
>      > Build the coolest Linux based applications with Moblin SDK & win
>     great
>      > prizes
>      > Grand prize is a trip for two to an Open Source event anywhere in
>     the world
>      > http://moblin-contest.org/redirect.php?banner_id=100&url=/
>     <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>      > _______________________________________________
>      > javax-usb-devel mailing list
>      > javax-usb-devel@lists.sourceforge.net
>     <mailto:javax-usb-devel@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>      >
>      >
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> javax-usb-devel mailing list
> javax-usb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to