Using rxtx, i cant get past square one on my current system.  Ive been
trying on and off for the last few months to get some onewire devices
working with my system but havent had any luck.  So in the process of
troubleshooting, I built and ran this fairly simple program:

http://www.java2s.com/ExampleCode/Development-Class/OpenaserialportusingJavaCommunications.htm

As soon as I try to open any port, a native exception is thrown, which
is a flippin pain.

I am in uucp, and to be sure I have applied liberal permissions to the
serial devices in dev and the contents of /var/lock (and /var/lock
itself).  ie

[EMAIL PROTECTED] ~/Desktop/javaxcomm $ ls -al /dev/ttyS{0,1}
crwxrwxr-x  1 root tty 4, 64 Feb 23 09:56 /dev/ttyS0
crwxrwxr-x  1 root tty 4, 65 Feb 23 09:56 /dev/ttyS1

[EMAIL PROTECTED] ~/Desktop/javaxcomm $ id
uid=1000(lstewart) gid=442(media),
groups=5(tty),7(lp),10(wheel),11(floppy),12(mail),14(uucp),16(cron),18(audio),19(cdrom),20(dialout),21(ftp),27(video),35(games),80(cdrw),81(apache),100(users),245(slocate),442(media),446(plugdev),449(camera)

[EMAIL PROTECTED] ~/Desktop/javaxcomm $ ls -al /var/lock/
total 5
drwxrwxr-x   2 root     uucp  104 May  4 17:23 .
drwxr-xr-x  19 root     root  552 Apr 20 23:29 ..
-rwxrwxr-x   1 root     root    0 Mar 27 22:18 .keep
-r--r--r--   1 lstewart media  11 May  4 17:23 LCK..ttyS0

The answer MUST be simple...this is such a basic task and Linux has
such a long history in interfacing with serial devices .... i mean
RS-232!! I know im missing something very simple.....anyone???

--
gentoo-user@gentoo.org mailing list

Reply via email to