First, sorry for answering so late.
I tried at last : you were right (as usual ?). The permissions on the USB
device nodes were not set to '0666'. After I corrected it, no other error is
thrown and I can run the program in user mode.

Thanks,

Aurelien

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] la part de Dan
Streetman
Envoye : dimanche 12 octobre 2003 00:18
A : Aurelien Godin
Cc : javax.usb devel
Objet : RE: [javax-usb-devel] 0.10.1



so you put the files somewhere else and removed them from jre/lib/ext/
right...?  just making sure...

As far as running as root, you shouldn't have to.  The only reason I know
of you may have to run as root is the USB device node permissions, by
default they are 644, unless you mount /proc/bus/usb with the
'devmode=0666' option, which lets all users access the devnodes.

It is possible that the JNI has a bug when it can't access the devnodes;
it should obviously just fail, but I haven't tested it in a while.  Did
you get the output when using -DJAVAX_USB_MSG_LEVEL=DEBUG3?  That should
show where in JNI you're dying...

About the jre/lib/ext directory, jars in that directory get special
treatment by the JRE.  I don't trust JVMs to work right, when using jars
in that directory.


On Sat, 11 Oct 2003, Aurelien Godin wrote:

>I tried to put the files somewhere else, but it did not solve the problem.
>However, I made some progress : if I run the application as Root, is works
>perfectly.
>
>So I have two questions :
>- with the previous version of javax-usb (running on Mandrake 8.1) I did
not
>need to connect as root. Why do I need it now ?
>- why don't you recommend to put the jarfiles in the jre/lib/ext dircetoy ?
>
>Thanks vey much for your help,
>
>Aurelien
>

--
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to