## To use JLibIBuddy in your project
##
## Libusb-win32 installation ##
First of all you need to install libusb-win32. Follow the instructions there: [http://libusb-win32.sourceforge.net/#installation](http://libusb-win32.sourceforge.net/#installation).
### If you don't use maven 2 ###
- download and and extract jlibibuddy-1.1-dist.zip
- add jlibibuddy-1.1.jar and lib/*.jar to your project classpath
- copy lib/libusbjava-native-win32-0.2.3.0.dll to C:\Windows\System32 and rename it to LibusbJava.dll (it must have this name otherwise it won't work).
##If you use maven 2
- add the repository (where to find JLibIBuddy) to your pom:
JRAF.org
JRAF.org Maven Repository
http://www.JRAF.org/static/maven/2
default
- add the dependency to JLibIBuddy to your pom:
org.jraf
jlibibuddy
1.1
compile
- add this plugin to your pom:
org.apache.maven.plugins
maven-dependency-plugin
install-libusbjava-dll
install
copy
libusbjava
libusbjava-native-win32
0.2.3.0
dll
c:\windows\system32\
LibusbJava2.dll
This will copy the dll to the proper place when you invoke the install goal. Sorry I don't know if there is a way to do that in JLibIBuddy's pom directly so for now you have to do it in your own pom.